|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.impl.dom.NodeImpl
Field Summary | |
org.apache.axiom.om.OMXMLParserWrapper |
builder
Field builder |
protected boolean |
done
Field done |
protected org.apache.axiom.om.OMFactory |
factory
Factory that created this node |
protected static short |
FIRSTCHILD
|
protected short |
flags
|
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.axiom.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.axiom.om.OMFactory factory)
|
protected |
NodeImpl(org.apache.axiom.om.OMFactory factory)
|
Method Summary | |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
|
void |
build()
Builds next element. |
void |
buildWithAttachments()
Parses this node and builds the object structure in memory. |
org.w3c.dom.Node |
cloneNode(boolean deep)
|
short |
compareDocumentPosition(org.w3c.dom.Node arg0)
|
org.apache.axiom.om.OMNode |
detach()
|
org.w3c.dom.NamedNodeMap |
getAttributes()
Returns the collection of attributes associated with this node, or null if none. |
java.lang.String |
getBaseURI()
|
org.w3c.dom.NodeList |
getChildNodes()
|
java.lang.Object |
getFeature(java.lang.String arg0,
java.lang.String arg1)
|
org.w3c.dom.Node |
getFirstChild()
Gets the first child of this Node, or null if none. |
org.w3c.dom.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. |
java.lang.String |
getLocalName()
|
java.lang.String |
getNamespaceURI()
|
org.apache.axiom.om.OMNode |
getNextOMSibling()
Default behavior returns null, overriden in ChildNode. |
org.w3c.dom.Node |
getNextSibling()
Returns the next child of this node's parent, or null if none. |
java.lang.String |
getNodeValue()
|
org.apache.axiom.om.OMFactory |
getOMFactory()
Returns the OMFactory that created this node |
org.w3c.dom.Document |
getOwnerDocument()
Finds the document that this Node belongs to (the document in whose context the Node was created). |
org.apache.axiom.om.OMContainer |
getParent()
|
org.w3c.dom.Node |
getParentNode()
|
java.lang.String |
getPrefix()
|
org.apache.axiom.om.OMNode |
getPreviousOMSibling()
Default behavior returns null, overriden in ChildNode. |
org.w3c.dom.Node |
getPreviousSibling()
Returns the previous child of this node's parent, or null if none. |
java.lang.String |
getTextContent()
|
java.lang.Object |
getUserData(java.lang.String key)
|
boolean |
hasAttributes()
|
boolean |
hasChildNodes()
|
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
|
void |
insertSiblingAfter(org.apache.axiom.om.OMNode sibling)
|
void |
insertSiblingBefore(org.apache.axiom.om.OMNode sibling)
|
void |
internalSerializeWithCache(javax.xml.stream.XMLStreamWriter writer)
There no concept of caching in this OM-DOM implementation. |
boolean |
isComplete()
|
boolean |
isDefaultNamespace(java.lang.String arg0)
|
boolean |
isEqualNode(org.w3c.dom.Node node)
Tests whether two nodes are equal. |
boolean |
isSameNode(org.w3c.dom.Node node)
|
boolean |
isSupported(java.lang.String feature,
java.lang.String version)
|
org.w3c.dom.Node |
item(int index)
NodeList method: Returns the Nth immediate child of this node, or null if the index is out of bounds. |
java.lang.String |
lookupNamespaceURI(java.lang.String arg0)
|
java.lang.String |
lookupPrefix(java.lang.String arg0)
|
void |
normalize()
|
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild)
|
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
|
void |
serialize(java.io.OutputStream output)
|
void |
serialize(java.io.OutputStream output,
org.apache.axiom.om.OMOutputFormat format)
|
void |
serialize(java.io.Writer writer)
|
void |
serialize(java.io.Writer writer2,
org.apache.axiom.om.OMOutputFormat format)
|
void |
serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
|
void |
serializeAndConsume(java.io.OutputStream output)
|
void |
serializeAndConsume(java.io.OutputStream output,
org.apache.axiom.om.OMOutputFormat format)
|
void |
serializeAndConsume(java.io.Writer writer)
|
void |
serializeAndConsume(java.io.Writer writer2,
org.apache.axiom.om.OMOutputFormat format)
|
void |
serializeAndConsume(javax.xml.stream.XMLStreamWriter xmlWriter)
|
void |
setComplete(boolean state)
|
void |
setNextOMSibling(org.apache.axiom.om.OMNode previousSibling)
|
void |
setNodeValue(java.lang.String arg0)
|
protected void |
setOwnerDocument(DocumentImpl document)
Sets the owner document. |
void |
setPrefix(java.lang.String prefix)
|
void |
setPreviousOMSibling(org.apache.axiom.om.OMNode previousSibling)
|
void |
setTextContent(java.lang.String arg0)
|
java.lang.Object |
setUserData(java.lang.String key,
java.lang.Object value,
org.w3c.dom.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.axiom.om.impl.OMNodeEx |
internalSerialize, internalSerializeAndConsume, setParent, setType |
Methods inherited from interface org.apache.axiom.om.OMNode |
discard, getType |
Field Detail |
public org.apache.axiom.om.OMXMLParserWrapper builder
protected boolean done
protected DocumentImpl ownerNode
protected org.apache.axiom.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.axiom.om.OMFactory factory)
protected NodeImpl(org.apache.axiom.om.OMFactory factory)
Method Detail |
public void normalize()
normalize
in interface org.w3c.dom.Node
public boolean hasAttributes()
hasAttributes
in interface org.w3c.dom.Node
public boolean hasChildNodes()
hasChildNodes
in interface org.w3c.dom.Node
public java.lang.String getLocalName()
getLocalName
in interface org.w3c.dom.Node
public java.lang.String getNamespaceURI()
getNamespaceURI
in interface org.w3c.dom.Node
public java.lang.String getNodeValue() throws org.w3c.dom.DOMException
getNodeValue
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
public java.lang.String getPrefix()
getPrefix
in interface org.w3c.dom.Node
public void setNodeValue(java.lang.String arg0) throws org.w3c.dom.DOMException
setNodeValue
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
public void setPrefix(java.lang.String prefix) throws org.w3c.dom.DOMException
setPrefix
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
public org.w3c.dom.Document getOwnerDocument()
getOwnerDocument
in interface org.w3c.dom.Node
public org.w3c.dom.NamedNodeMap getAttributes()
getAttributes
in interface org.w3c.dom.Node
ElementImpl
public org.w3c.dom.Node getFirstChild()
getFirstChild
in interface org.w3c.dom.Node
ParentNode
public org.w3c.dom.Node getLastChild()
getLastChild
in interface org.w3c.dom.Node
ParentNode
public org.w3c.dom.Node getNextSibling()
getNextSibling
in interface org.w3c.dom.Node
public org.w3c.dom.Node getParentNode()
getParentNode
in interface org.w3c.dom.Node
public org.w3c.dom.Node getPreviousSibling()
getPreviousSibling
in interface org.w3c.dom.Node
public org.w3c.dom.Node cloneNode(boolean deep)
cloneNode
in interface org.w3c.dom.Node
public org.w3c.dom.NodeList getChildNodes()
getChildNodes
in interface org.w3c.dom.Node
public boolean isSupported(java.lang.String feature, java.lang.String version)
isSupported
in interface org.w3c.dom.Node
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException
appendChild
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
removeChild
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild) throws org.w3c.dom.DOMException
insertBefore
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
replaceChild
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
public int getLength()
getLength
in interface org.w3c.dom.NodeList
ParentNode
public org.w3c.dom.Node item(int index)
item
in interface org.w3c.dom.NodeList
index
-
ParentNode
public org.apache.axiom.om.OMContainer getParent() throws org.apache.axiom.om.OMException
getParent
in interface org.apache.axiom.om.OMNode
org.apache.axiom.om.OMException
public boolean isComplete()
isComplete
in interface org.apache.axiom.om.OMNode
public void setComplete(boolean state)
setComplete
in interface org.apache.axiom.om.impl.OMNodeEx
public void internalSerializeWithCache(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void insertSiblingAfter(org.apache.axiom.om.OMNode sibling) throws org.apache.axiom.om.OMException
insertSiblingAfter
in interface org.apache.axiom.om.OMNode
org.apache.axiom.om.OMException
public void insertSiblingBefore(org.apache.axiom.om.OMNode sibling) throws org.apache.axiom.om.OMException
insertSiblingBefore
in interface org.apache.axiom.om.OMNode
org.apache.axiom.om.OMException
public org.apache.axiom.om.OMNode getPreviousOMSibling()
getPreviousOMSibling
in interface org.apache.axiom.om.OMNode
public org.apache.axiom.om.OMNode getNextOMSibling()
getNextOMSibling
in interface org.apache.axiom.om.OMNode
public void setPreviousOMSibling(org.apache.axiom.om.OMNode previousSibling)
setPreviousOMSibling
in interface org.apache.axiom.om.impl.OMNodeEx
public void setNextOMSibling(org.apache.axiom.om.OMNode previousSibling)
setNextOMSibling
in interface org.apache.axiom.om.impl.OMNodeEx
public void build()
build
in interface org.apache.axiom.om.OMNode
public void buildWithAttachments()
buildWithAttachments
in interface org.apache.axiom.om.OMNode
protected void setOwnerDocument(DocumentImpl document)
document
- public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException
serialize
in interface org.apache.axiom.om.OMNode
javax.xml.stream.XMLStreamException
public void serializeAndConsume(javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException
serializeAndConsume
in interface org.apache.axiom.om.OMNode
javax.xml.stream.XMLStreamException
public org.apache.axiom.om.OMNode detach()
detach
in interface org.apache.axiom.om.OMNode
public java.lang.String getBaseURI()
public short compareDocumentPosition(org.w3c.dom.Node arg0) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public java.lang.String getTextContent() throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public void setTextContent(java.lang.String arg0) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public boolean isSameNode(org.w3c.dom.Node node)
public java.lang.String lookupPrefix(java.lang.String arg0)
public boolean isDefaultNamespace(java.lang.String arg0)
public java.lang.String lookupNamespaceURI(java.lang.String arg0)
public boolean isEqualNode(org.w3c.dom.Node node)
Node.isSameNode()
. All nodes that are the same will also be equal, though the
reverse may not be true. nodeName
, localName
,
namespaceURI
, prefix
, nodeValue
. This is: they are
both null
, or they have the same length and are character for character
identical. attributes
NamedNodeMaps
are equal. This
is: they are both null
, or they have the same length and for each node that
exists in one map there is a node that exists in the other map and is equal, although not
necessarily at the same index. childNodes
NodeLists
are equal. This is: they are both null
, or they have the same length and contain
equal nodes at the same index. Note that normalization can affect equality; to avoid this,
nodes should be normalized before being compared. DocumentType
nodes to be equal, the following conditions must also be satisfied:
publicId
,
systemId
, internalSubset
. entities
NamedNodeMaps
are equal. notations
NamedNodeMaps
are equal. ownerDocument
, baseURI
, and
parentNode
attributes, the specified
attribute for
Attr
nodes, the schemaTypeInfo
attribute for Attr
and
Element
nodes, the Text.isElementContentWhitespace
attribute for
Text
nodes, as well as any user data or event listeners registered on the nodes.
Note: As a general rule, anything not mentioned in the description above is not significant in consideration of equality checking. Note that future versions of this specification may take into account more attributes and implementations conform to this specification are expected to be updated accordingly.
true
if the nodes are equal, false
otherwise.public java.lang.Object getFeature(java.lang.String arg0, java.lang.String arg1)
public java.lang.Object setUserData(java.lang.String key, java.lang.Object value, org.w3c.dom.UserDataHandler userDataHandler)
public java.lang.Object getUserData(java.lang.String key)
public void serialize(java.io.OutputStream output) throws javax.xml.stream.XMLStreamException
serialize
in interface org.apache.axiom.om.OMNode
javax.xml.stream.XMLStreamException
public void serialize(java.io.Writer writer) throws javax.xml.stream.XMLStreamException
serialize
in interface org.apache.axiom.om.OMNode
javax.xml.stream.XMLStreamException
public void serializeAndConsume(java.io.OutputStream output) throws javax.xml.stream.XMLStreamException
serializeAndConsume
in interface org.apache.axiom.om.OMNode
javax.xml.stream.XMLStreamException
public void serializeAndConsume(java.io.Writer writer) throws javax.xml.stream.XMLStreamException
serializeAndConsume
in interface org.apache.axiom.om.OMNode
javax.xml.stream.XMLStreamException
public void serialize(java.io.OutputStream output, org.apache.axiom.om.OMOutputFormat format) throws javax.xml.stream.XMLStreamException
serialize
in interface org.apache.axiom.om.OMNode
javax.xml.stream.XMLStreamException
public void serialize(java.io.Writer writer2, org.apache.axiom.om.OMOutputFormat format) throws javax.xml.stream.XMLStreamException
serialize
in interface org.apache.axiom.om.OMNode
javax.xml.stream.XMLStreamException
public void serializeAndConsume(java.io.OutputStream output, org.apache.axiom.om.OMOutputFormat format) throws javax.xml.stream.XMLStreamException
serializeAndConsume
in interface org.apache.axiom.om.OMNode
javax.xml.stream.XMLStreamException
public void serializeAndConsume(java.io.Writer writer2, org.apache.axiom.om.OMOutputFormat format) throws javax.xml.stream.XMLStreamException
serializeAndConsume
in interface org.apache.axiom.om.OMNode
javax.xml.stream.XMLStreamException
public org.apache.axiom.om.OMFactory getOMFactory()
OMFactory
that created this node
getOMFactory
in interface org.apache.axiom.om.OMNode
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |