public abstract class AbstractNode extends Object implements Node
Modifier and Type | Field and Description |
---|---|
protected Node |
node
The wrapped 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 | Constructor and Description |
---|---|
protected |
AbstractNode(Node node) |
protected Node node
protected AbstractNode(Node node)
node
- in the node to wrappublic Node getNode()
protected Node getNode(Node node)
node
- in the possibly wrapped nodepublic String getNodeName()
getNodeName
in interface Node
Node.getNodeName()
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
DOMException
Node.getNodeValue()
public void setNodeValue(String nodeValue) throws DOMException
setNodeValue
in interface Node
DOMException
Node.setNodeValue(java.lang.String)
public short getNodeType()
getNodeType
in interface Node
Node.getNodeType()
public Node getParentNode()
getParentNode
in interface Node
Node.getParentNode()
public NodeList getChildNodes()
getChildNodes
in interface Node
Node.getChildNodes()
public Node getFirstChild()
getFirstChild
in interface Node
Node.getFirstChild()
public Node getLastChild()
getLastChild
in interface Node
Node.getLastChild()
public Node getPreviousSibling()
getPreviousSibling
in interface Node
Node.getPreviousSibling()
public Node getNextSibling()
getNextSibling
in interface Node
Node.getNextSibling()
public NamedNodeMap getAttributes()
getAttributes
in interface Node
Node.getAttributes()
public Document getOwnerDocument()
getOwnerDocument
in interface Node
Node.getOwnerDocument()
public Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore
in interface Node
DOMException
Node.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild
in interface Node
DOMException
Node.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)
public Node removeChild(Node oldChild) throws DOMException
removeChild
in interface Node
DOMException
Node.removeChild(org.w3c.dom.Node)
public Node appendChild(Node newChild) throws DOMException
appendChild
in interface Node
DOMException
Node.appendChild(org.w3c.dom.Node)
public boolean hasChildNodes()
hasChildNodes
in interface Node
Node.hasChildNodes()
public Node cloneNode(boolean deep)
cloneNode
in interface Node
Node.cloneNode(boolean)
public void normalize()
normalize
in interface Node
Node.normalize()
public boolean isSupported(String feature, String version)
isSupported
in interface Node
Node.isSupported(java.lang.String, java.lang.String)
public String getNamespaceURI()
getNamespaceURI
in interface Node
Node.getNamespaceURI()
public String getPrefix()
getPrefix
in interface Node
Node.getPrefix()
public void setPrefix(String prefix) throws DOMException
setPrefix
in interface Node
DOMException
Node.setPrefix(java.lang.String)
public String getLocalName()
getLocalName
in interface Node
Node.getLocalName()
public boolean hasAttributes()
hasAttributes
in interface Node
Node.hasAttributes()
public String getBaseURI()
getBaseURI
in interface Node
Node.getBaseURI()
public short compareDocumentPosition(Node other) throws DOMException
compareDocumentPosition
in interface Node
DOMException
Node.compareDocumentPosition(org.w3c.dom.Node)
public String getTextContent() throws DOMException
getTextContent
in interface Node
DOMException
Node.getTextContent()
public void setTextContent(String textContent) throws DOMException
setTextContent
in interface Node
DOMException
Node.setTextContent(java.lang.String)
public boolean isSameNode(Node other)
isSameNode
in interface Node
Node.isSameNode(org.w3c.dom.Node)
public String lookupPrefix(String namespaceURI)
lookupPrefix
in interface Node
Node.lookupPrefix(java.lang.String)
public boolean isDefaultNamespace(String namespaceURI)
isDefaultNamespace
in interface Node
Node.isDefaultNamespace(java.lang.String)
public String lookupNamespaceURI(String prefix)
lookupNamespaceURI
in interface Node
Node.lookupNamespaceURI(java.lang.String)
public boolean isEqualNode(Node arg)
isEqualNode
in interface Node
Node.isEqualNode(org.w3c.dom.Node)
public Object getFeature(String feature, String version)
getFeature
in interface Node
Node.getFeature(java.lang.String, java.lang.String)
public Object setUserData(String key, Object data, UserDataHandler handler)
setUserData
in interface Node
Node.setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)
public Object getUserData(String key)
getUserData
in interface Node
Node.getUserData(java.lang.String)
Copyright © 2004-2013 Codehaus. All Rights Reserved.