public class DOMNodeImpl extends Object implements Node
Modifier and Type | Field and Description |
---|---|
protected Node |
adaptee
Wrapped tidy 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 |
DOMNodeImpl(Node adaptee)
Intantiates a new DOM node.
|
protected Node adaptee
protected DOMNodeImpl(Node adaptee)
adaptee
- wrapped Tidy nodepublic String getNodeValue()
getNodeValue
in interface Node
Node.getNodeValue()
public void setNodeValue(String nodeValue)
setNodeValue
in interface Node
Node.setNodeValue(java.lang.String)
public String getNodeName()
getNodeName
in interface Node
Node.getNodeName()
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)
insertBefore
in interface Node
Node.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
public Node replaceChild(Node newChild, Node oldChild)
replaceChild
in interface Node
Node.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)
public Node removeChild(Node oldChild)
removeChild
in interface Node
Node.removeChild(org.w3c.dom.Node)
public Node appendChild(Node newChild)
appendChild
in interface Node
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 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 isSupported(String feature, String version)
isSupported
in interface Node
Node.isSupported(java.lang.String, java.lang.String)
public boolean hasAttributes()
hasAttributes
in interface Node
Node.hasAttributes()
public short compareDocumentPosition(Node other) throws DOMException
compareDocumentPosition
in interface Node
DOMException
Node.compareDocumentPosition(org.w3c.dom.Node)
public String getBaseURI()
getBaseURI
in interface Node
Node.getBaseURI()
public Object getFeature(String feature, String version)
getFeature
in interface Node
Node.getFeature(java.lang.String, java.lang.String)
public String getTextContent() throws DOMException
getTextContent
in interface Node
DOMException
Node.getTextContent()
public Object getUserData(String key)
getUserData
in interface Node
Node.getUserData(java.lang.String)
public boolean isDefaultNamespace(String namespaceURI)
isDefaultNamespace
in interface Node
Node.isDefaultNamespace(java.lang.String)
public boolean isEqualNode(Node arg)
isEqualNode
in interface Node
Node.isEqualNode(org.w3c.dom.Node)
public boolean isSameNode(Node other)
isSameNode
in interface Node
Node.isSameNode(org.w3c.dom.Node)
public String lookupNamespaceURI(String prefix)
lookupNamespaceURI
in interface Node
Node.lookupNamespaceURI(java.lang.String)
public String lookupPrefix(String namespaceURI)
lookupPrefix
in interface Node
Node.lookupPrefix(java.lang.String)
public void setTextContent(String textContent) throws DOMException
setTextContent
in interface Node
DOMException
Node.setTextContent(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)
Copyright © 2000–2012 sourceforge. All rights reserved.