|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface XMLUtil.Visitor
The Visitor
interface is used when traversing XML
documents. To use it, create a class that implements the interface and
give it to the traverse
and find
methods.
XMLUtil.traverse(Node, th.co.edge.jseq.util.XMLUtil.Visitor)
,
XMLUtil.find(Node, th.co.edge.jseq.util.XMLUtil.Visitor)
Method Summary | |
---|---|
void |
afterVisit(org.w3c.dom.Node node)
Called after the children of the Node have been traversed. |
boolean |
visit(org.w3c.dom.Node node)
Called for every Node that is traversed, before the
children are visited. |
Method Detail |
---|
boolean visit(org.w3c.dom.Node node)
Node
that is traversed, before the
children are visited.
node
- the Node
currently being visited.
true
if you want to stop the traversal, or if
you have found the Node
you are looking for,
false
otherwisevoid afterVisit(org.w3c.dom.Node node)
node
- the Node
whose children have just been
traversed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |