public abstract class NodeImpl extends Object implements org.apache.axiom.dom.DOMNode
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
NodeImpl() |
| Modifier and Type | Method and Description |
|---|---|
short |
compareDocumentPosition(Node other) |
org.apache.axiom.core.NodeFactory |
coreGetNodeFactory() |
String |
getBaseURI() |
abstract org.apache.axiom.om.OMXMLParserWrapper |
getBuilder() |
Object |
getFeature(String feature,
String version) |
org.apache.axiom.om.OMMetaFactory |
getMetaFactory() |
Object |
getUserData(String key) |
boolean |
isEqualNode(Node node)
Tests whether two nodes are equal.
|
boolean |
isSameNode(Node node) |
void |
normalize() |
Object |
setUserData(String key,
Object value,
UserDataHandler userDataHandler) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloneNode, getNamespaceContext, isDefaultNamespace, isSupported, lookupNamespaceURI, lookupPrefix, normalizeappendChild, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, hasAttributes, hasChildNodes, insertBefore, removeChild, replaceChild, setNodeValue, setPrefix, setTextContentcloneChildrenIfNecessary, coreClone, coreCreateNode, coreGetNodeClass, coreGetNodeType, coreGetOwnerDocument, coreHasSameOwnerDocument, coreSetOwnerDocument, getRootOrOwnerDocument, init, initAncillaryData, shallowClone, updateFiliationpublic final org.apache.axiom.core.NodeFactory coreGetNodeFactory()
coreGetNodeFactory in interface org.apache.axiom.core.CoreNodepublic final org.apache.axiom.om.OMMetaFactory getMetaFactory()
public String getBaseURI()
getBaseURI in interface Nodepublic short compareDocumentPosition(Node other) throws DOMException
compareDocumentPosition in interface NodeDOMExceptionpublic boolean isSameNode(Node node)
isSameNode in interface Nodepublic boolean isEqualNode(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.
isEqualNode in interface Nodenode - The node to compare equality with.true if the nodes are equal, false otherwise.public Object getFeature(String feature, String version)
getFeature in interface Nodepublic Object setUserData(String key, Object value, UserDataHandler userDataHandler)
setUserData in interface Nodepublic Object getUserData(String key)
getUserData in interface Nodepublic abstract org.apache.axiom.om.OMXMLParserWrapper getBuilder()
Copyright © The Apache Software Foundation. All Rights Reserved.