|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xerces.dom.TreeWalkerImpl
This class implements the TreeWalker interface.
Constructor Summary | |
---|---|
TreeWalkerImpl(Node root,
int whatToShow,
NodeFilter nodeFilter,
boolean entityReferenceExpansion)
Public constructor |
Method Summary | |
---|---|
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. |
NodeFilter |
getFilter()
Return the NodeFilter |
Node |
getRoot()
The root node of the TreeWalker , as specified
when it was created. |
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TreeWalkerImpl(Node root, int whatToShow, NodeFilter nodeFilter, boolean entityReferenceExpansion)
Method Detail |
public Node getRoot()
TreeWalker
root
node of the TreeWalker
, as specified
when it was created.getRoot
in interface TreeWalker
public int getWhatToShow()
getWhatToShow
in interface TreeWalker
public void setWhatShow(int whatToShow)
public NodeFilter getFilter()
getFilter
in interface TreeWalker
public boolean getExpandEntityReferences()
getExpandEntityReferences
in interface TreeWalker
public Node getCurrentNode()
getCurrentNode
in interface TreeWalker
org.w3c.dom.traversal.TreeWalker
DOMException
- NOT_SUPPORTED_ERR: Raised if an attempt is made to set
currentNode
to null
.public void setCurrentNode(Node node)
setCurrentNode
in interface TreeWalker
public Node parentNode()
parentNode
in interface TreeWalker
org.w3c.dom.traversal.TreeWalker
null
if the current node
has no parent in the TreeWalker
's logical view.public Node firstChild()
firstChild
in interface TreeWalker
org.w3c.dom.traversal.TreeWalker
null
if the current node has no
visible children in the TreeWalker
's logical view.public Node lastChild()
lastChild
in interface TreeWalker
org.w3c.dom.traversal.TreeWalker
null
if the current node has no
children in the TreeWalker
's logical view.public Node previousSibling()
previousSibling
in interface TreeWalker
org.w3c.dom.traversal.TreeWalker
null
if the current node has no
previous sibling. in the TreeWalker
's logical view.public Node nextSibling()
nextSibling
in interface TreeWalker
org.w3c.dom.traversal.TreeWalker
null
if the current node has no
next sibling. in the TreeWalker
's logical view.public Node previousNode()
previousNode
in interface TreeWalker
org.w3c.dom.traversal.TreeWalker
null
if the current node has no
previous node in the TreeWalker
's logical view.public Node nextNode()
nextNode
in interface TreeWalker
org.w3c.dom.traversal.TreeWalker
null
if the current node has no
next node in the TreeWalker
's logical view.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |