org.apache.xerces.dom

Class TreeWalkerImpl

public class TreeWalkerImpl extends Object implements TreeWalker

This class implements the TreeWalker interface.

Version: $Id: TreeWalkerImpl.java,v 1.10 2004/10/05 17:12:51 mrglavas Exp $

UNKNOWN:

Constructor Summary
TreeWalkerImpl(Node root, int whatToShow, NodeFilter nodeFilter, boolean entityReferenceExpansion)
Public constructor
Method Summary
NodefirstChild()
Return the first child Node from the current node, after applying filter, whatToshow.
NodegetCurrentNode()
Return the current Node.
booleangetExpandEntityReferences()
Return whether children entity references are included in the iterator.
NodeFiltergetFilter()
Return the NodeFilter
NodegetRoot()
intgetWhatToShow()
Return the whatToShow value
NodelastChild()
Return the last child Node from the current node, after applying filter, whatToshow.
NodenextNode()
Return the next Node from the current node, after applying filter, whatToshow.
NodenextSibling()
Return the next sibling Node from the current node, after applying filter, whatToshow.
NodeparentNode()
Return the parent Node from the current node, after applying filter, whatToshow.
NodepreviousNode()
Return the previous Node from the current node, after applying filter, whatToshow.
NodepreviousSibling()
Return the previous sibling Node from the current node, after applying filter, whatToshow.
voidsetCurrentNode(Node node)
Return the current Node.
voidsetWhatShow(int whatToShow)

Constructor Detail

TreeWalkerImpl

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

Method Detail

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.

getCurrentNode

public Node getCurrentNode()
Return the current Node.

getExpandEntityReferences

public boolean getExpandEntityReferences()
Return whether children entity references are included in the iterator.

getFilter

public NodeFilter getFilter()
Return the NodeFilter

getRoot

public Node getRoot()

getWhatToShow

public int getWhatToShow()
Return the whatToShow value

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.

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.

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.

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.

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.

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.

setCurrentNode

public void setCurrentNode(Node node)
Return the current Node.

setWhatShow

public void setWhatShow(int whatToShow)
Copyright © 1999-2005 Apache XML Project. All Rights Reserved.