Package org.apache.openjpa.lib.graph
Interface GraphVisitor
-
public interface GraphVisitor
A helper interface that allows third parties to be notified of graph events during graph traversals
- Since:
- 1.0.0
- Author:
- Steve Kim
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
edgeVisited(Edge edge)
may visit the node twice (both sides)void
nodeSeen(java.lang.Object node)
May not be called.void
nodeVisited(java.lang.Object node)
will only be called once per node
-
-
-
Method Detail
-
nodeSeen
void nodeSeen(java.lang.Object node)
May not be called. The meaning of this method is dependent on the traversal being used. See each appropriate graph walker for details.
-
nodeVisited
void nodeVisited(java.lang.Object node)
will only be called once per node
-
edgeVisited
void edgeVisited(Edge edge)
may visit the node twice (both sides)
-
-