th.co.edge.jseq.util
Interface XMLUtil.Visitor

All Known Implementing Classes:
XMLUtil.NodePrinter
Enclosing class:
XMLUtil

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.

See Also:
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

visit

boolean visit(org.w3c.dom.Node node)
Called for every Node that is traversed, before the children are visited.

Parameters:
node - the Node currently being visited.
Returns:
true if you want to stop the traversal, or if you have found the Node you are looking for, false otherwise

afterVisit

void afterVisit(org.w3c.dom.Node node)
Called after the children of the Node have been traversed.

Parameters:
node - the Node whose children have just been traversed


Copyright © 2008 Edge Software, Co., Ltd.. All Rights Reserved.