XML for Java EA2

com.ibm.xml.dom.traversal
Class TreeWalkerImpl

java.lang.Object
  |
  +--com.ibm.xml.dom.traversal.TreeWalkerImpl

public class TreeWalkerImpl
extends java.lang.Object
implements TreeWalker

This class implements the TreeWalker interface.


Field Summary
static boolean DEBUG
           
 
Constructor Summary
TreeWalkerImpl(Node root, int whatToShow, NodeFilter nodeFilter)
          Public constructor
 
Method Summary
 Node firstChild()
          Return the first child Node from the current node, after applying filter, whatToshow.
 Node getCurrentNode()
          Return the current Node.
 NodeFilter getFilter()
          Return the NodeFilter
 int getWhatToShow()
          Return the whatToShow value
 Node lastChild()
          Return the last child Node from the current node, after applying filter, whatToshow.
 Node nextNode()
          Return the next Node from the current node, after applying filter, whatToshow.
 Node nextSibling()
          Return the next sibling Node from the current node, after applying filter, whatToshow.
 Node parentNode()
          Return the parent Node from the current node, after applying filter, whatToshow.
 Node previousNode()
          Return the previous Node from the current node, after applying filter, whatToshow.
 Node previousSibling()
          Return the previous sibling Node from the current node, after applying filter, whatToshow.
 void setCurrentNode(Node node)
          Return the current Node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final boolean DEBUG
Constructor Detail

TreeWalkerImpl

public TreeWalkerImpl(Node root,
                      int whatToShow,
                      NodeFilter nodeFilter)
Public constructor
Method Detail

getWhatToShow

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

getFilter

public NodeFilter getFilter()
Return the NodeFilter
Specified by:
getFilter 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

XML for Java EA2