ATTLIST_DECL_NODE, ELEMENT_DECL_NODE, PARAM_ENTITY_NODE
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 |
---|---|
Object |
clone() |
Node |
cloneNode(boolean deep) |
short |
compareDocumentPosition(Node other) |
boolean |
equals(Object other)
Returns true if this node and other are identical by content but
not context.
|
String |
getBaseURI() |
Object |
getFeature(String feature,
String version) |
String |
getName() |
short |
getNodeType()
Abstract method must be implemented by each node class.
|
String |
getTextContent() |
Object |
getUserData(String key) |
boolean |
hasAttributes() |
boolean |
isAny()
Returns true if element may contain any child elements and character data
in any order.
|
boolean |
isDefaultNamespace(String namespaceURI) |
boolean |
isEmpty()
Returns true if element is empty.
|
boolean |
isEqualNode(Node arg) |
boolean |
isMixed()
Returns true if element contains mixed contents.
|
boolean |
isSameNode(Node other) |
boolean |
isSupported(String feature,
String version) |
String |
lookupNamespaceURI(String prefix) |
String |
lookupPrefix(String namespaceURI) |
boolean |
requiresClosingTag()
Returns true if the closing tag is optional.
|
boolean |
requiresOpeningTag()
Returns true if the opening tag is optional.
|
void |
setTextContent(String textContent) |
Object |
setUserData(String key,
Object data,
UserDataHandler handler) |
appendChild, cloneInto, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasChildNodes, insertBefore, isReadOnly, makeReadOnly, normalize, removeChild, replaceChild, setNodeValue, setOwnerDocument, setPrefix, supports
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendChild, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasChildNodes, insertBefore, normalize, removeChild, replaceChild, setNodeValue, setPrefix
public short getNodeType()
NodeImpl
getNodeType
in interface Node
getNodeType
in class NodeImpl
Node.getNodeType()
public String getName()
public boolean equals(Object other)
NodeImpl
NodeImpl.equals(java.lang.Object)
on each pair
Note that for large document roots, the equality operation can be very expensive.
public boolean isEmpty()
public boolean isAny()
public boolean isMixed()
isEmpty()
and isAny()
return false.
If all three are false, then contents is subject to exact order.public boolean requiresOpeningTag()
requiresClosingTag()
is also true.public boolean requiresClosingTag()
public short compareDocumentPosition(Node other) throws DOMException
compareDocumentPosition
in interface Node
DOMException
public String getBaseURI()
getBaseURI
in interface Node
public Object getFeature(String feature, String version)
getFeature
in interface Node
public String getTextContent() throws DOMException
getTextContent
in interface Node
DOMException
public Object getUserData(String key)
getUserData
in interface Node
public boolean isDefaultNamespace(String namespaceURI)
isDefaultNamespace
in interface Node
public boolean isEqualNode(Node arg)
isEqualNode
in interface Node
public boolean isSameNode(Node other)
isSameNode
in interface Node
public String lookupNamespaceURI(String prefix)
lookupNamespaceURI
in interface Node
public String lookupPrefix(String namespaceURI)
lookupPrefix
in interface Node
public void setTextContent(String textContent) throws DOMException
setTextContent
in interface Node
DOMException
public Object setUserData(String key, Object data, UserDataHandler handler)
setUserData
in interface Node
public boolean hasAttributes()
hasAttributes
in interface Node
public boolean isSupported(String feature, String version)
isSupported
in interface Node
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.