public abstract class XMLNode extends Object implements Node
| Modifier and Type | Field and Description |
|---|---|
protected XMLDocument |
doc |
protected XMLNode |
parent |
protected Map<String,Pair<Object,UserDataHandler>> |
userData |
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 | Constructor and Description |
|---|---|
protected |
XMLNode(XMLDocument doc) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloneNode, getNodeName, getNodeType, getTextContent, setTextContentprotected XMLDocument doc
protected XMLNode parent
protected Map<String,Pair<Object,UserDataHandler>> userData
protected XMLNode(XMLDocument doc)
public XMLDocument getOwnerDocument()
getOwnerDocument in interface Nodeprotected void setParent(XMLNode parent)
public Node getParentNode()
getParentNode in interface Nodepublic boolean isAncestor(XMLNode node)
public String getNodeValue()
getNodeValue in interface Nodepublic void setNodeValue(String nodeValue)
setNodeValue in interface Nodepublic String getLocalName()
getLocalName in interface Nodepublic String getNamespaceURI()
getNamespaceURI in interface Nodepublic Node getFirstChild()
getFirstChild in interface Nodepublic Node getLastChild()
getLastChild in interface Nodepublic boolean hasChildNodes()
hasChildNodes in interface Nodepublic NodeList getChildNodes()
getChildNodes in interface Nodepublic XMLNode getPreviousSibling()
getPreviousSibling in interface Nodepublic XMLNode getNextSibling()
getNextSibling in interface Nodepublic Node appendChild(Node newChild)
appendChild in interface Nodepublic Node insertBefore(Node newChild, Node refChild)
insertBefore in interface Nodepublic Node removeChild(Node oldChild)
removeChild in interface Nodepublic Node replaceChild(Node newChild, Node oldChild)
replaceChild in interface Nodepublic String lookupPrefix(String namespaceURI)
lookupPrefix in interface Nodepublic boolean isDefaultNamespace(String namespaceURI)
isDefaultNamespace in interface Nodepublic String lookupNamespaceURI(String prefix)
lookupNamespaceURI in interface Nodepublic boolean hasAttributes()
hasAttributes in interface Nodepublic NamedNodeMap getAttributes()
getAttributes in interface Nodepublic String getBaseURI()
getBaseURI in interface Nodepublic boolean isSupported(String feature, String version)
isSupported in interface Nodepublic Object getFeature(String feature, String version)
getFeature in interface Nodepublic boolean isSameNode(Node other)
isSameNode in interface Nodepublic boolean isEqualNode(Node arg)
isEqualNode in interface Nodepublic Object getUserData(String key)
getUserData in interface Nodepublic Object setUserData(String key, Object data, UserDataHandler handler)
setUserData in interface Nodeprotected void cloned(XMLNode clone)
public short compareDocumentPosition(Node other)
compareDocumentPosition in interface NodeCopyright © 2019. All rights reserved.