Class TreeWalkerImpl

java.lang.Object
org.apache.xerces.dom.TreeWalkerImpl
All Implemented Interfaces:
TreeWalker

public class TreeWalkerImpl extends Object implements TreeWalker
This class implements the TreeWalker interface.

INTERNAL:

Usage of this class is not supported. It may be altered or removed at any time.
Version:
$Id: TreeWalkerImpl.java 536630 2007-05-09 19:37:05Z mrglavas $
  • Constructor Details

    • TreeWalkerImpl

      public TreeWalkerImpl(Node root, int whatToShow, NodeFilter nodeFilter, boolean entityReferenceExpansion)
      Public constructor
  • Method Details

    • getRoot

      public Node getRoot()
      Specified by:
      getRoot in interface TreeWalker
    • getWhatToShow

      public int getWhatToShow()
      Return the whatToShow value
      Specified by:
      getWhatToShow in interface TreeWalker
    • setWhatShow

      public void setWhatShow(int whatToShow)
    • getFilter

      public NodeFilter getFilter()
      Return the NodeFilter
      Specified by:
      getFilter in interface TreeWalker
    • getExpandEntityReferences

      public boolean getExpandEntityReferences()
      Return whether children entity references are included in the iterator.
      Specified by:
      getExpandEntityReferences in interface TreeWalker
    • getCurrentNode

      public Node getCurrentNode()
      Return the current Node.
      Specified by:
      getCurrentNode in interface TreeWalker
    • setCurrentNode

      public void setCurrentNode(Node node)
      Return the current Node.
      Specified by:
      setCurrentNode in interface TreeWalker
    • parentNode

      public Node parentNode()
      Return the parent Node from the current node, after applying filter, whatToshow. If result is not null, set the current Node.
      Specified by:
      parentNode in interface TreeWalker
    • firstChild

      public Node firstChild()
      Return the first child Node from the current node, after applying filter, whatToshow. If result is not null, set the current Node.
      Specified by:
      firstChild in interface TreeWalker
    • lastChild

      public Node lastChild()
      Return the last child Node from the current node, after applying filter, whatToshow. If result is not null, set the current Node.
      Specified by:
      lastChild in interface TreeWalker
    • previousSibling

      public Node previousSibling()
      Return the previous sibling Node from the current node, after applying filter, whatToshow. If result is not null, set the current Node.
      Specified by:
      previousSibling in interface TreeWalker
    • nextSibling

      public Node nextSibling()
      Return the next sibling Node from the current node, after applying filter, whatToshow. If result is not null, set the current Node.
      Specified by:
      nextSibling in interface TreeWalker
    • previousNode

      public Node previousNode()
      Return the previous Node from the current node, after applying filter, whatToshow. If result is not null, set the current Node.
      Specified by:
      previousNode in interface TreeWalker
    • nextNode

      public Node nextNode()
      Return the next Node from the current node, after applying filter, whatToshow. If result is not null, set the current Node.
      Specified by:
      nextNode in interface TreeWalker