Class 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.

    • Method Detail

      • getNextSibling

        public Node getNextSibling()
        Description copied from interface: Node
        The node immediately following this node. If there is no such node, this returns null.
        Specified by:
        getNextSibling in interface Node
        Overrides:
        getNextSibling in class NodeImpl
      • getParentNode

        public Node getParentNode()
        Description copied from interface: Node
        The parent of this node. All nodes, except Attr, Document, DocumentFragment, Entity, and Notation may 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 is null.
        Specified by:
        getParentNode in interface Node
        Overrides:
        getParentNode in class NodeImpl
      • getPreviousSibling

        public Node getPreviousSibling()
        Description copied from interface: Node
        The node immediately preceding this node. If there is no such node, this returns null.
        Specified by:
        getPreviousSibling in interface Node
        Overrides:
        getPreviousSibling in class NodeImpl