Class TreeWalkerImpl
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.dom.TreeWalkerImpl
-
- All Implemented Interfaces:
org.w3c.dom.traversal.TreeWalker
public class TreeWalkerImpl extends Object implements org.w3c.dom.traversal.TreeWalker
This class implements the TreeWalker interface.- Version:
- $Id$
-
-
Constructor Summary
Constructors Constructor Description TreeWalkerImpl(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 Node
firstChild()
Return the first child Node from the current node, after applying filter, whatToshow.Node
getCurrentNode()
Return the current Node.boolean
getExpandEntityReferences()
Return whether children entity references are included in the iterator.org.w3c.dom.traversal.NodeFilter
getFilter()
Return the NodeFilterNode
getRoot()
int
getWhatToShow()
Return the whatToShow valueNode
lastChild()
Return the last child Node from the current node, after applying filter, whatToshow.Node
nextNode()
Return the next Node from the current node, after applying filter, whatToshow.Node
nextSibling()
Return the next sibling Node from the current node, after applying filter, whatToshow.Node
parentNode()
Return the parent Node from the current node, after applying filter, whatToshow.Node
previousNode()
Return the previous Node from the current node, after applying filter, whatToshow.Node
previousSibling()
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 Detail
-
TreeWalkerImpl
public TreeWalkerImpl(Node root, int whatToShow, org.w3c.dom.traversal.NodeFilter nodeFilter, boolean entityReferenceExpansion)
Public constructor
-
-
Method Detail
-
getRoot
public Node getRoot()
- Specified by:
getRoot
in interfaceorg.w3c.dom.traversal.TreeWalker
-
getWhatToShow
public int getWhatToShow()
Return the whatToShow value- Specified by:
getWhatToShow
in interfaceorg.w3c.dom.traversal.TreeWalker
-
setWhatShow
public void setWhatShow(int whatToShow)
-
getFilter
public org.w3c.dom.traversal.NodeFilter getFilter()
Return the NodeFilter- Specified by:
getFilter
in interfaceorg.w3c.dom.traversal.TreeWalker
-
getExpandEntityReferences
public boolean getExpandEntityReferences()
Return whether children entity references are included in the iterator.- Specified by:
getExpandEntityReferences
in interfaceorg.w3c.dom.traversal.TreeWalker
-
getCurrentNode
public Node getCurrentNode()
Return the current Node.- Specified by:
getCurrentNode
in interfaceorg.w3c.dom.traversal.TreeWalker
-
setCurrentNode
public void setCurrentNode(Node node)
Return the current Node.- Specified by:
setCurrentNode
in interfaceorg.w3c.dom.traversal.TreeWalker
-
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.- Specified by:
parentNode
in interfaceorg.w3c.dom.traversal.TreeWalker
-
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.- Specified by:
firstChild
in interfaceorg.w3c.dom.traversal.TreeWalker
-
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.- Specified by:
lastChild
in interfaceorg.w3c.dom.traversal.TreeWalker
-
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.- Specified by:
previousSibling
in interfaceorg.w3c.dom.traversal.TreeWalker
-
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.- Specified by:
nextSibling
in interfaceorg.w3c.dom.traversal.TreeWalker
-
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.- Specified by:
previousNode
in interfaceorg.w3c.dom.traversal.TreeWalker
-
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.- Specified by:
nextNode
in interfaceorg.w3c.dom.traversal.TreeWalker
-
-