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
Modifier and Type | Method and Description |
---|---|
void |
accept(XMLNodeVisitor visitor) |
void |
addedToTree(XDMModel model)
A node can only be added to a tree once.
|
Node |
clone(boolean cloneContent,
boolean cloneAttributes,
boolean cloneChildren)
This api clones the node object and returns the clone.
|
int |
getId() |
int |
getIndexOfChild(Node child)
Lookup child index of given child based on node ID.
|
String |
getNamespaceURI(Document document)
Returns namespace of this node in the given Document tree.
|
boolean |
isEquivalentNode(Node node) |
boolean |
isInTree() |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
int getId()
void accept(XMLNodeVisitor visitor)
void addedToTree(XDMModel model)
boolean isInTree()
Node.addedToTree(XDMModel)
boolean isEquivalentNode(Node node)
node
- Node to compareNode clone(boolean cloneContent, boolean cloneAttributes, boolean cloneChildren)
cloneContent
- If true the content of clone can be modified.cloneAttributes
- If true the attributes of the clone can be modified.cloneChildren
- If true the children of the clone can be modified.int getIndexOfChild(Node child)