public class TreeWalkerImpl extends Object implements org.w3c.dom.traversal.TreeWalker
Constructor and Description |
---|
TreeWalkerImpl(Node root,
int whatToShow,
org.w3c.dom.traversal.NodeFilter nodeFilter,
boolean entityReferenceExpansion)
Public constructor
|
Modifier and Type | Method and 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 NodeFilter
|
Node |
getRoot() |
int |
getWhatToShow()
Return the whatToShow value
|
Node |
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) |
public TreeWalkerImpl(Node root, int whatToShow, org.w3c.dom.traversal.NodeFilter nodeFilter, boolean entityReferenceExpansion)
public Node getRoot()
getRoot
in interface org.w3c.dom.traversal.TreeWalker
public int getWhatToShow()
getWhatToShow
in interface org.w3c.dom.traversal.TreeWalker
public void setWhatShow(int whatToShow)
public org.w3c.dom.traversal.NodeFilter getFilter()
getFilter
in interface org.w3c.dom.traversal.TreeWalker
public boolean getExpandEntityReferences()
getExpandEntityReferences
in interface org.w3c.dom.traversal.TreeWalker
public Node getCurrentNode()
getCurrentNode
in interface org.w3c.dom.traversal.TreeWalker
public void setCurrentNode(Node node)
setCurrentNode
in interface org.w3c.dom.traversal.TreeWalker
public Node parentNode()
parentNode
in interface org.w3c.dom.traversal.TreeWalker
public Node firstChild()
firstChild
in interface org.w3c.dom.traversal.TreeWalker
public Node lastChild()
lastChild
in interface org.w3c.dom.traversal.TreeWalker
public Node previousSibling()
previousSibling
in interface org.w3c.dom.traversal.TreeWalker
public Node nextSibling()
nextSibling
in interface org.w3c.dom.traversal.TreeWalker
public Node previousNode()
previousNode
in interface org.w3c.dom.traversal.TreeWalker
public Node nextNode()
nextNode
in interface org.w3c.dom.traversal.TreeWalker
Copyright © 2016 JBoss by Red Hat. All rights reserved.