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
 void edgeVisited(Edge edge)
          may visit the node twice (both sides)
 void nodeSeen(Object node)
          May not be called.
 void nodeVisited(Object node)
          will only be called once per node
 

Method Detail

nodeSeen

void nodeSeen(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(Object node)
will only be called once per node


edgeVisited

void edgeVisited(Edge edge)
may visit the node twice (both sides)



Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.