com.redspr.beanldom.stree
Class NodeImpl
java.lang.Object
|
+--com.redspr.beanldom.stree.NodeImpl
- All Implemented Interfaces:
- Node
- Direct Known Subclasses:
- AttrImpl, ChildNode, DocumentImpl, TextImpl
- public abstract class NodeImpl
- extends Object
- implements Node
base implementation for all classes in stree
- Author:
- Sam Hough
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
NodeImpl
public NodeImpl()
getNodeValue
public String getNodeValue()
- Specified by:
getNodeValue
in interface Node
setNodeValue
public void setNodeValue(String nodeValue)
throws DOMException
- Specified by:
setNodeValue
in interface Node
DOMException
appendChild
public final Node appendChild(Node newChild)
throws DOMException
- Specified by:
appendChild
in interface Node
DOMException
cloneNode
public Node cloneNode(boolean deep)
- Specified by:
cloneNode
in interface Node
getParentNode
public Node getParentNode()
- Specified by:
getParentNode
in interface Node
getPreviousSibling
public Node getPreviousSibling()
- Specified by:
getPreviousSibling
in interface Node
getNextSibling
public Node getNextSibling()
- Specified by:
getNextSibling
in interface Node
getAttributes
public NamedNodeMap getAttributes()
- Specified by:
getAttributes
in interface Node
hasAttributes
public boolean hasAttributes()
- Specified by:
hasAttributes
in interface Node
hasChildNodes
public boolean hasChildNodes()
- Specified by:
hasChildNodes
in interface Node
getChildNodes
public NodeList getChildNodes()
- Specified by:
getChildNodes
in interface Node
getFirstChild
public Node getFirstChild()
- Specified by:
getFirstChild
in interface Node
getLastChild
public Node getLastChild()
- Specified by:
getLastChild
in interface Node
insertBefore
public Node insertBefore(Node newChild,
Node refChild)
throws DOMException
- Specified by:
insertBefore
in interface Node
DOMException
removeChild
public final Node removeChild(Node oldChild)
- Specified by:
removeChild
in interface Node
replaceChild
public final Node replaceChild(Node newChild,
Node oldChild)
throws DOMException
- Specified by:
replaceChild
in interface Node
DOMException
normalize
public void normalize()
- Specified by:
normalize
in interface Node
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURI
in interface Node
getPrefix
public String getPrefix()
- Specified by:
getPrefix
in interface Node
getLocalName
public final String getLocalName()
- Specified by:
getLocalName
in interface Node
setPrefix
public void setPrefix(String prefix)
throws DOMException
- Specified by:
setPrefix
in interface Node
DOMException
isSupported
public boolean isSupported(String feature,
String version)
- Specified by:
isSupported
in interface Node
toString
public String toString()
- Overrides:
toString
in class Object