|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.om.impl.dom.NodeImpl
Field Summary | |
protected org.apache.ws.commons.om.OMXMLParserWrapper |
builder
Field builder |
protected boolean |
done
Field done |
protected org.apache.ws.commons.om.OMFactory |
factory
Factory that created this node |
protected static short |
FIRSTCHILD
|
protected short |
flags
|
protected int |
nodeType
Field nodeType |
protected static short |
NORMALIZED
|
protected static short |
OWNED
|
protected DocumentImpl |
ownerNode
|
protected static short |
READONLY
|
protected static short |
SPECIFIED
|
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from interface org.apache.ws.commons.om.OMNode |
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE |
Constructor Summary | |
protected |
NodeImpl(DocumentImpl ownerDocument,
org.apache.ws.commons.om.OMFactory factory)
|
protected |
NodeImpl(org.apache.ws.commons.om.OMFactory factory)
|
Method Summary | |
Node |
appendChild(Node newChild)
|
void |
build()
Builds next element. |
Node |
cloneNode(boolean deep)
|
short |
compareDocumentPosition(Node arg0)
|
org.apache.ws.commons.om.OMNode |
detach()
|
NamedNodeMap |
getAttributes()
Returns the collection of attributes associated with this node, or null if none. |
String |
getBaseURI()
|
NodeList |
getChildNodes()
|
Object |
getFeature(String arg0,
String arg1)
|
Node |
getFirstChild()
Gets the first child of this Node, or null if none. |
Node |
getLastChild()
Gets the last child of this Node, or null if none. |
int |
getLength()
NodeList method: Returns the number of immediate children of this node. |
String |
getLocalName()
|
String |
getNamespaceURI()
|
org.apache.ws.commons.om.OMNode |
getNextOMSibling()
Default behavior returns null, overriden in ChildNode. |
Node |
getNextSibling()
Returns the next child of this node's parent, or null if none. |
String |
getNodeValue()
|
org.apache.ws.commons.om.OMFactory |
getOMFactory()
Returns the OMFactory that created this node |
Document |
getOwnerDocument()
Finds the document that this Node belongs to (the document in whose context the Node was created). |
org.apache.ws.commons.om.OMContainer |
getParent()
|
Node |
getParentNode()
|
String |
getPrefix()
|
org.apache.ws.commons.om.OMNode |
getPreviousOMSibling()
Default behavior returns null, overriden in ChildNode. |
Node |
getPreviousSibling()
Returns the previous child of this node's parent, or null if none. |
String |
getTextContent()
|
Object |
getUserData(String key)
|
boolean |
hasAttributes()
|
boolean |
hasChildNodes()
|
Node |
insertBefore(Node newChild,
Node refChild)
|
void |
insertSiblingAfter(org.apache.ws.commons.om.OMNode sibling)
|
void |
insertSiblingBefore(org.apache.ws.commons.om.OMNode sibling)
|
boolean |
isComplete()
|
boolean |
isDefaultNamespace(String arg0)
|
boolean |
isEqualNode(Node arg0)
|
boolean |
isSameNode(Node arg0)
|
boolean |
isSupported(String feature,
String version)
|
Node |
item(int index)
NodeList method: Returns the Nth immediate child of this node, or null if the index is out of bounds. |
String |
lookupNamespaceURI(String arg0)
|
String |
lookupPrefix(String arg0)
|
void |
normalize()
|
Node |
removeChild(Node oldChild)
|
Node |
replaceChild(Node newChild,
Node oldChild)
|
void |
serialize(OutputStream output)
|
void |
serialize(OutputStream output,
org.apache.ws.commons.om.OMOutputFormat format)
|
void |
serialize(Writer writer)
|
void |
serialize(Writer writer,
org.apache.ws.commons.om.OMOutputFormat format)
|
void |
serialize(XMLStreamWriter xmlWriter)
|
void |
serializeAndConsume(OutputStream output)
|
void |
serializeAndConsume(OutputStream output,
org.apache.ws.commons.om.OMOutputFormat format)
|
void |
serializeAndConsume(Writer writer)
|
void |
serializeAndConsume(Writer writer,
org.apache.ws.commons.om.OMOutputFormat format)
|
void |
serializeAndConsume(XMLStreamWriter xmlWriter)
|
void |
serializeWithCache(org.apache.ws.commons.om.impl.OMOutputImpl omOutput)
There no concept of caching in this OM-DOM implementation. |
void |
setComplete(boolean state)
|
void |
setNextOMSibling(org.apache.ws.commons.om.OMNode previousSibling)
|
void |
setNodeValue(String arg0)
|
protected void |
setOwnerDocument(DocumentImpl document)
Sets the owner document. |
void |
setPrefix(String prefix)
|
void |
setPreviousOMSibling(org.apache.ws.commons.om.OMNode previousSibling)
|
void |
setTextContent(String arg0)
|
Object |
setUserData(String key,
Object value,
UserDataHandler userDataHandler)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
getNodeName, getNodeType |
Methods inherited from interface org.apache.ws.commons.om.impl.OMNodeEx |
serialize, serializeAndConsume, setParent, setType |
Methods inherited from interface org.apache.ws.commons.om.OMNode |
discard, getType |
Field Detail |
protected org.apache.ws.commons.om.OMXMLParserWrapper builder
protected boolean done
protected int nodeType
protected DocumentImpl ownerNode
protected org.apache.ws.commons.om.OMFactory factory
protected short flags
protected static final short OWNED
protected static final short FIRSTCHILD
protected static final short READONLY
protected static final short SPECIFIED
protected static final short NORMALIZED
Constructor Detail |
protected NodeImpl(DocumentImpl ownerDocument, org.apache.ws.commons.om.OMFactory factory)
protected NodeImpl(org.apache.ws.commons.om.OMFactory factory)
Method Detail |
public void normalize()
normalize
in interface Node
public boolean hasAttributes()
hasAttributes
in interface Node
public boolean hasChildNodes()
hasChildNodes
in interface Node
public String getLocalName()
getLocalName
in interface Node
public String getNamespaceURI()
getNamespaceURI
in interface Node
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
DOMException
public String getPrefix()
getPrefix
in interface Node
public void setNodeValue(String arg0) throws DOMException
setNodeValue
in interface Node
DOMException
public void setPrefix(String prefix) throws DOMException
setPrefix
in interface Node
DOMException
public Document getOwnerDocument()
getOwnerDocument
in interface Node
public NamedNodeMap getAttributes()
getAttributes
in interface Node
ElementImpl
public Node getFirstChild()
By default we do not have any children, ParentNode overrides this.
getFirstChild
in interface Node
ParentNode
public Node getLastChild()
By default we do not have any children, ParentNode overrides this.
getLastChild
in interface Node
ParentNode
public Node getNextSibling()
getNextSibling
in interface Node
public Node getParentNode()
getParentNode
in interface Node
public Node getPreviousSibling()
getPreviousSibling
in interface Node
public Node cloneNode(boolean deep)
cloneNode
in interface Node
public NodeList getChildNodes()
getChildNodes
in interface Node
public boolean isSupported(String feature, String version)
isSupported
in interface Node
public Node appendChild(Node newChild) throws DOMException
appendChild
in interface Node
DOMException
public Node removeChild(Node oldChild) throws DOMException
removeChild
in interface Node
DOMException
public Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore
in interface Node
DOMException
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild
in interface Node
DOMException
public int getLength()
By default we do not have any children, ParentNode overrides this.
getLength
in interface NodeList
ParentNode
public Node item(int index)
By default we do not have any children, ParentNode overrides this.
item
in interface NodeList
index
-
ParentNode
public org.apache.ws.commons.om.OMContainer getParent() throws org.apache.ws.commons.om.OMException
getParent
in interface org.apache.ws.commons.om.OMNode
org.apache.ws.commons.om.OMException
public boolean isComplete()
isComplete
in interface org.apache.ws.commons.om.OMNode
public void setComplete(boolean state)
setComplete
in interface org.apache.ws.commons.om.impl.OMNodeEx
public void serializeWithCache(org.apache.ws.commons.om.impl.OMOutputImpl omOutput) throws XMLStreamException
XMLStreamException
public void insertSiblingAfter(org.apache.ws.commons.om.OMNode sibling) throws org.apache.ws.commons.om.OMException
insertSiblingAfter
in interface org.apache.ws.commons.om.OMNode
org.apache.ws.commons.om.OMException
public void insertSiblingBefore(org.apache.ws.commons.om.OMNode sibling) throws org.apache.ws.commons.om.OMException
insertSiblingBefore
in interface org.apache.ws.commons.om.OMNode
org.apache.ws.commons.om.OMException
public org.apache.ws.commons.om.OMNode getPreviousOMSibling()
getPreviousOMSibling
in interface org.apache.ws.commons.om.OMNode
public org.apache.ws.commons.om.OMNode getNextOMSibling()
getNextOMSibling
in interface org.apache.ws.commons.om.OMNode
public void setPreviousOMSibling(org.apache.ws.commons.om.OMNode previousSibling)
setPreviousOMSibling
in interface org.apache.ws.commons.om.impl.OMNodeEx
public void setNextOMSibling(org.apache.ws.commons.om.OMNode previousSibling)
setNextOMSibling
in interface org.apache.ws.commons.om.impl.OMNodeEx
public void build()
build
in interface org.apache.ws.commons.om.OMNode
protected void setOwnerDocument(DocumentImpl document)
document
- public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
serialize
in interface org.apache.ws.commons.om.OMNode
XMLStreamException
public void serializeAndConsume(XMLStreamWriter xmlWriter) throws XMLStreamException
serializeAndConsume
in interface org.apache.ws.commons.om.OMNode
XMLStreamException
public org.apache.ws.commons.om.OMNode detach()
detach
in interface org.apache.ws.commons.om.OMNode
public String getBaseURI()
public short compareDocumentPosition(Node arg0) throws DOMException
DOMException
public String getTextContent() throws DOMException
DOMException
public void setTextContent(String arg0) throws DOMException
DOMException
public boolean isSameNode(Node arg0)
public String lookupPrefix(String arg0)
public boolean isDefaultNamespace(String arg0)
public String lookupNamespaceURI(String arg0)
public boolean isEqualNode(Node arg0)
public Object getFeature(String arg0, String arg1)
public Object setUserData(String key, Object value, UserDataHandler userDataHandler)
public Object getUserData(String key)
public void serialize(OutputStream output) throws XMLStreamException
serialize
in interface org.apache.ws.commons.om.OMNode
XMLStreamException
public void serialize(Writer writer) throws XMLStreamException
serialize
in interface org.apache.ws.commons.om.OMNode
XMLStreamException
public void serializeAndConsume(OutputStream output) throws XMLStreamException
serializeAndConsume
in interface org.apache.ws.commons.om.OMNode
XMLStreamException
public void serializeAndConsume(Writer writer) throws XMLStreamException
serializeAndConsume
in interface org.apache.ws.commons.om.OMNode
XMLStreamException
public void serialize(OutputStream output, org.apache.ws.commons.om.OMOutputFormat format) throws XMLStreamException
serialize
in interface org.apache.ws.commons.om.OMNode
XMLStreamException
public void serialize(Writer writer, org.apache.ws.commons.om.OMOutputFormat format) throws XMLStreamException
serialize
in interface org.apache.ws.commons.om.OMNode
XMLStreamException
public void serializeAndConsume(OutputStream output, org.apache.ws.commons.om.OMOutputFormat format) throws XMLStreamException
serializeAndConsume
in interface org.apache.ws.commons.om.OMNode
XMLStreamException
public void serializeAndConsume(Writer writer, org.apache.ws.commons.om.OMOutputFormat format) throws XMLStreamException
serializeAndConsume
in interface org.apache.ws.commons.om.OMNode
XMLStreamException
public org.apache.ws.commons.om.OMFactory getOMFactory()
OMFactory
that created this node
getOMFactory
in interface org.apache.ws.commons.om.OMNode
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |