Package org.apache.xerces.dom
Class TreeWalkerImpl
- java.lang.Object
-
- org.apache.xerces.dom.TreeWalkerImpl
-
- All Implemented Interfaces:
org.w3c.dom.traversal.TreeWalker
public class TreeWalkerImpl extends java.lang.Object implements org.w3c.dom.traversal.TreeWalkerThis 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
Constructors Constructor Description TreeWalkerImpl(org.w3c.dom.Node root, int whatToShow, org.w3c.dom.traversal.NodeFilter nodeFilter, boolean entityReferenceExpansion)Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.NodefirstChild()Return the first child Node from the current node, after applying filter, whatToshow.org.w3c.dom.NodegetCurrentNode()Return the current Node.booleangetExpandEntityReferences()Return whether children entity references are included in the iterator.org.w3c.dom.traversal.NodeFiltergetFilter()Return the NodeFilterorg.w3c.dom.NodegetRoot()intgetWhatToShow()Return the whatToShow valueorg.w3c.dom.NodelastChild()Return the last child Node from the current node, after applying filter, whatToshow.org.w3c.dom.NodenextNode()Return the next Node from the current node, after applying filter, whatToshow.org.w3c.dom.NodenextSibling()Return the next sibling Node from the current node, after applying filter, whatToshow.org.w3c.dom.NodeparentNode()Return the parent Node from the current node, after applying filter, whatToshow.org.w3c.dom.NodepreviousNode()Return the previous Node from the current node, after applying filter, whatToshow.org.w3c.dom.NodepreviousSibling()Return the previous sibling Node from the current node, after applying filter, whatToshow.voidsetCurrentNode(org.w3c.dom.Node node)Return the current Node.voidsetWhatShow(int whatToShow)
-
-
-
Method Detail
-
getRoot
public org.w3c.dom.Node getRoot()
- Specified by:
getRootin interfaceorg.w3c.dom.traversal.TreeWalker
-
getWhatToShow
public int getWhatToShow()
Return the whatToShow value- Specified by:
getWhatToShowin interfaceorg.w3c.dom.traversal.TreeWalker
-
setWhatShow
public void setWhatShow(int whatToShow)
-
getFilter
public org.w3c.dom.traversal.NodeFilter getFilter()
Return the NodeFilter- Specified by:
getFilterin interfaceorg.w3c.dom.traversal.TreeWalker
-
getExpandEntityReferences
public boolean getExpandEntityReferences()
Return whether children entity references are included in the iterator.- Specified by:
getExpandEntityReferencesin interfaceorg.w3c.dom.traversal.TreeWalker
-
getCurrentNode
public org.w3c.dom.Node getCurrentNode()
Return the current Node.- Specified by:
getCurrentNodein interfaceorg.w3c.dom.traversal.TreeWalker
-
setCurrentNode
public void setCurrentNode(org.w3c.dom.Node node)
Return the current Node.- Specified by:
setCurrentNodein interfaceorg.w3c.dom.traversal.TreeWalker
-
parentNode
public org.w3c.dom.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:
parentNodein interfaceorg.w3c.dom.traversal.TreeWalker
-
firstChild
public org.w3c.dom.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:
firstChildin interfaceorg.w3c.dom.traversal.TreeWalker
-
lastChild
public org.w3c.dom.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:
lastChildin interfaceorg.w3c.dom.traversal.TreeWalker
-
previousSibling
public org.w3c.dom.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:
previousSiblingin interfaceorg.w3c.dom.traversal.TreeWalker
-
nextSibling
public org.w3c.dom.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:
nextSiblingin interfaceorg.w3c.dom.traversal.TreeWalker
-
previousNode
public org.w3c.dom.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:
previousNodein interfaceorg.w3c.dom.traversal.TreeWalker
-
nextNode
public org.w3c.dom.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:
nextNodein interfaceorg.w3c.dom.traversal.TreeWalker
-
-