API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.w3c.dom.traversal. TreeWalker View Source
Author(s)
Since
DOM Level 2
Version
Serial
Hierarchy
 TreeWalker
Subinterfaces
Description
public interface TreeWalker
  TreeWalker objects are used to navigate a document tree or subtree using the view of the document defined by their whatToShow flags and filter (if any).
See also:   
Methods
Hide/Show inherited methods
public Node firstChild ()
  Moves the TreeWalker to the first visible child of the current node, and returns the new node.
public Node getCurrentNode ()
  The node at which the TreeWalker is currently positioned.
public boolean getExpandEntityReferences ()
  The value of this flag determines whether the children of entity reference nodes are visible to the TreeWalker.
public NodeFilter getFilter ()
The filter used to screen nodes.
public Node getRoot ()
The root node of the TreeWalker, as specified when it was created.
public int getWhatToShow ()
  This attribute determines which node types are presented via the TreeWalker.
public Node lastChild ()
  Moves the TreeWalker to the last visible child of the current node, and returns the new node.
public Node nextNode ()
  Moves the TreeWalker to the next visible node in document order relative to the current node, and returns the new node.
public Node nextSibling ()
  Moves the TreeWalker to the next sibling of the current node, and returns the new node.
public Node parentNode ()
  Moves to and returns the closest visible ancestor node of the current node.
public Node previousNode ()
  Moves the TreeWalker to the previous visible node in document order relative to the current node, and returns the new node.
public Node previousSibling ()
  Moves the TreeWalker to the previous sibling of the current node, and returns the new node.
public void setCurrentNode (Node currentNode) throws DOMException
  The node at which the TreeWalker is currently positioned.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar