|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
DocumentTraversal
contains methods that create iterators and
tree-walkers to traverse a node and its children in document order (depth
first, pre-order traversal, which is equivalent to the order in which the
start tags occur in the text representation of the document). In DOMs
which support the Traversal feature, DocumentTraversal
will
be implemented by the same objects that implement the Document interface.
See also the Document Object Model (DOM) Level 2 Traversal and Range Specification.
Method Summary | |
NodeIterator |
createNodeIterator(Node root,
int whatToShow,
NodeFilter filter,
boolean entityReferenceExpansion)
Create a new NodeIterator over the subtree rooted at the
specified node. |
TreeWalker |
createTreeWalker(Node root,
int whatToShow,
NodeFilter filter,
boolean entityReferenceExpansion)
Create a new TreeWalker over the subtree rooted at the
specified node. |
Method Detail |
public NodeIterator createNodeIterator(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion) throws DOMException
NodeIterator
over the subtree rooted at the
specified node.
NodeIterator
.
DOMException
- NOT_SUPPORTED_ERR: Raised if the specified root
is
null
.public TreeWalker createTreeWalker(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion) throws DOMException
TreeWalker
over the subtree rooted at the
specified node.
TreeWalker
.
DOMException
- NOT_SUPPORTED_ERR: Raised if the specified root
is
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |