Package org.apache.harmony.xml.dom
Class LeafNodeImpl
java.lang.Object
org.apache.harmony.xml.dom.NodeImpl
org.apache.harmony.xml.dom.LeafNodeImpl
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
CharacterDataImpl,DocumentTypeImpl,EntityReferenceImpl,InnerNodeImpl,NotationImpl,ProcessingInstructionImpl
public abstract class LeafNodeImpl extends NodeImpl
Provides a straightforward implementation of the corresponding W3C DOM
interface. The class is used internally only, thus only notable members that
are not in the original interface are documented (the W3C docs are quite
extensive). Hope that's ok.
Some of the fields may have package visibility, so other classes belonging to the DOM implementation can easily access them while maintaining the DOM tree structure.
This class represents a Node that has a parent Node, but no children.
-
Field Summary
Fields inherited from interface org.w3c.dom.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 -
Method Summary
Modifier and Type Method Description NodegetNextSibling()The node immediately following this node.NodegetParentNode()The parent of this node.NodegetPreviousSibling()The node immediately preceding this node.Methods inherited from class org.apache.harmony.xml.dom.NodeImpl
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getPrefix, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
Method Details
-
getNextSibling
Description copied from interface:NodeThe node immediately following this node. If there is no such node, this returnsnull.- Specified by:
getNextSiblingin interfaceNode- Overrides:
getNextSiblingin classNodeImpl
-
getParentNode
Description copied from interface:NodeThe parent of this node. All nodes, exceptAttr,Document,DocumentFragment,Entity, andNotationmay have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from the tree, this isnull.- Specified by:
getParentNodein interfaceNode- Overrides:
getParentNodein classNodeImpl
-
getPreviousSibling
Description copied from interface:NodeThe node immediately preceding this node. If there is no such node, this returnsnull.- Specified by:
getPreviousSiblingin interfaceNode- Overrides:
getPreviousSiblingin classNodeImpl
-