|
dbXML API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.dbxml.xml.dom.traversal.TreeWalkerImpl
TreeWalkerImpl
| Constructor Summary | |
TreeWalkerImpl(org.w3c.dom.Node root,
int whatToShow,
org.w3c.dom.traversal.NodeFilter filter,
boolean entityReferenceExpansion)
|
|
| Method Summary | |
boolean |
acceptNode(org.w3c.dom.Node node)
|
void |
detach()
Detaches the iterator from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state. |
org.w3c.dom.Node |
firstChild()
Moves the TreeWalker to the first visible child of the
current node, and returns the new node. |
org.w3c.dom.Node |
getCurrentNode()
The node at which the TreeWalker is currently positioned. |
boolean |
getExpandEntityReferences()
The value of this flag determines whether the children of entity reference nodes are visible to the iterator. |
org.w3c.dom.traversal.NodeFilter |
getFilter()
The filter used to screen nodes. |
org.w3c.dom.Node |
getRoot()
The root node of the Iterator, as specified when it was created. |
int |
getShowType(org.w3c.dom.Node node)
|
int |
getWhatToShow()
This attribute determines which node types are presented via the iterator. |
org.w3c.dom.Node |
lastChild()
Moves the TreeWalker to the last visible child of the
current node, and returns the new node. |
org.w3c.dom.Node |
nextNode()
Moves the TreeWalker to the next visible node in document
order relative to the current node, and returns the new node. |
org.w3c.dom.Node |
nextSibling()
Moves the TreeWalker to the next sibling of the current
node, and returns the new node. |
org.w3c.dom.Node |
parentNode()
Moves to and returns the closest visible ancestor node of the current node. |
org.w3c.dom.Node |
previousNode()
Moves the TreeWalker to the previous visible node in
document order relative to the current node, and returns the new node. |
org.w3c.dom.Node |
previousSibling()
Moves the TreeWalker to the previous sibling of the
current node, and returns the new node. |
void |
setCurrentNode(org.w3c.dom.Node currentNode)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TreeWalkerImpl(org.w3c.dom.Node root,
int whatToShow,
org.w3c.dom.traversal.NodeFilter filter,
boolean entityReferenceExpansion)
throws org.w3c.dom.DOMException
| Method Detail |
public int getShowType(org.w3c.dom.Node node)
public boolean acceptNode(org.w3c.dom.Node node)
public org.w3c.dom.Node getRoot()
getRoot in interface org.w3c.dom.traversal.TreeWalkerpublic int getWhatToShow()
NodeFilter interface.getWhatToShow in interface org.w3c.dom.traversal.TreeWalkerpublic org.w3c.dom.traversal.NodeFilter getFilter()
getFilter in interface org.w3c.dom.traversal.TreeWalkerpublic boolean getExpandEntityReferences()
getExpandEntityReferences in interface org.w3c.dom.traversal.TreeWalkerpublic void detach()
detach has been invoked, calls to
nextNode orpreviousNode will raise the
exception INVALID_STATE_ERR.detach in interface org.w3c.dom.traversal.NodeIteratorpublic org.w3c.dom.Node getCurrentNode()
getCurrentNode in interface org.w3c.dom.traversal.TreeWalkerorg.w3c.dom.DOMException - NOT_SUPPORTED_ERR: Raised if the specified currentNode
isnull .
public void setCurrentNode(org.w3c.dom.Node currentNode)
throws org.w3c.dom.DOMException
setCurrentNode in interface org.w3c.dom.traversal.TreeWalkerpublic org.w3c.dom.Node parentNode()
parentNode in interface org.w3c.dom.traversal.TreeWalkerpublic org.w3c.dom.Node firstChild()
TreeWalker to the first visible child of the
current node, and returns the new node. If the current node has no
visible children, returns null , and retains the current
node.firstChild in interface org.w3c.dom.traversal.TreeWalkernull if the current node has no
visible children in the TreeWalker's logical view.public org.w3c.dom.Node lastChild()
TreeWalker to the last visible child of the
current node, and returns the new node. If the current node has no
visible children, returns null , and retains the current
node.lastChild in interface org.w3c.dom.traversal.TreeWalkernull if the current node has no
children in the TreeWalker's logical view.public org.w3c.dom.Node previousSibling()
TreeWalker to the previous sibling of the
current node, and returns the new node. If the current node has no
visible previous sibling, returns null , and retains the
current node.previousSibling in interface org.w3c.dom.traversal.TreeWalkernull if the current node has no
previous sibling in the TreeWalker's logical view.public org.w3c.dom.Node nextSibling()
TreeWalker to the next sibling of the current
node, and returns the new node. If the current node has no visible
next sibling, returns null , and retains the current node.nextSibling in interface org.w3c.dom.traversal.TreeWalkernull if the current node has no
next sibling in the TreeWalker's logical view.public org.w3c.dom.Node previousNode()
TreeWalker to the previous visible node in
document order relative to the current node, and returns the new node.
If the current node has no previous node, or if the search for
previousNode attempts to step upward from the TreeWalker's root node,
returns null , and retains the current node.previousNode in interface org.w3c.dom.traversal.TreeWalkernull if the current node has no
previous node in the TreeWalker's logical view.public org.w3c.dom.Node nextNode()
TreeWalker to the next visible node in document
order relative to the current node, and returns the new node. If the
current node has no next node, or if the search for nextNode attempts
to step upward from the TreeWalker's root node, returns
null , and retains the current node.nextNode in interface org.w3c.dom.traversal.TreeWalkernull if the current node has no
next node in the TreeWalker's logical view.
|
dbXML API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||