org.jboss.dna.graph.session
Class GraphSession.NodeVisitor<NodePayload,PropertyPayloadType>
java.lang.Object
org.jboss.dna.graph.session.GraphSession.NodeVisitor<NodePayload,PropertyPayloadType>
- Type Parameters:
NodePayload
- the type of node payload objectPropertyPayloadType
- the type of property payload object
- Enclosing class:
- GraphSession<Payload,PropertyPayload>
@NotThreadSafe
public abstract static class GraphSession.NodeVisitor<NodePayload,PropertyPayloadType>
- extends Object
The node visitor.
Method Summary |
void |
finish()
Method that should be called after all visiting has been done successfully (with no exceptions), including when no
nodes were visited. |
abstract boolean |
visit(GraphSession.Node<NodePayload,PropertyPayloadType> node)
Visit the supplied node, returning whether the children should be visited. |
GraphSession.NodeVisitor
public GraphSession.NodeVisitor()
visit
public abstract boolean visit(GraphSession.Node<NodePayload,PropertyPayloadType> node)
- Visit the supplied node, returning whether the children should be visited.
- Parameters:
node
- the node to be visited; never null
- Returns:
- true if the node's children should be visited, or false if no children should be visited
finish
public void finish()
- Method that should be called after all visiting has been done successfully (with no exceptions), including when no
nodes were visited.
Copyright © 2008-2009 JBoss, a division of Red Hat. All Rights Reserved.