Package org.apache.xerces.dom
Class TreeWalkerImpl
java.lang.Object
org.apache.xerces.dom.TreeWalkerImpl
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionTreeWalkerImpl
(Node root, int whatToShow, NodeFilter nodeFilter, boolean entityReferenceExpansion) Public constructor -
Method Summary
Modifier and TypeMethodDescriptionReturn the first child Node from the current node, after applying filter, whatToshow.Return the current Node.boolean
Return whether children entity references are included in the iterator.Return the NodeFiltergetRoot()
int
Return the whatToShow valueReturn the last child Node from the current node, after applying filter, whatToshow.nextNode()
Return the next Node from the current node, after applying filter, whatToshow.Return the next sibling Node from the current node, after applying filter, whatToshow.Return the parent Node from the current node, after applying filter, whatToshow.Return the previous Node from the current node, after applying filter, whatToshow.Return the previous sibling Node from the current node, after applying filter, whatToshow.void
setCurrentNode
(Node node) Return the current Node.void
setWhatShow
(int whatToShow)
-
Constructor Details
-
TreeWalkerImpl
public TreeWalkerImpl(Node root, int whatToShow, NodeFilter nodeFilter, boolean entityReferenceExpansion) Public constructor
-
-
Method Details
-
getRoot
- Specified by:
getRoot
in interfaceTreeWalker
-
getWhatToShow
public int getWhatToShow()Return the whatToShow value- Specified by:
getWhatToShow
in interfaceTreeWalker
-
setWhatShow
public void setWhatShow(int whatToShow) -
getFilter
Return the NodeFilter- Specified by:
getFilter
in interfaceTreeWalker
-
getExpandEntityReferences
public boolean getExpandEntityReferences()Return whether children entity references are included in the iterator.- Specified by:
getExpandEntityReferences
in interfaceTreeWalker
-
getCurrentNode
Return the current Node.- Specified by:
getCurrentNode
in interfaceTreeWalker
-
setCurrentNode
Return the current Node.- Specified by:
setCurrentNode
in interfaceTreeWalker
-
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 interfaceTreeWalker
-
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 interfaceTreeWalker
-
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 interfaceTreeWalker
-
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 interfaceTreeWalker
-
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 interfaceTreeWalker
-
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 interfaceTreeWalker
-
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 interfaceTreeWalker
-