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