org.apache.cayenne.project
Interface ProjectTraversalHandler


public interface ProjectTraversalHandler

ProjectTraversalHandler defines callback methods that are invoked during project tree traversal.


Method Summary
 void projectNode(ProjectPath nodePath)
          Invoked when a node is read during project tree traversal.
 boolean shouldReadChildren(Object node, ProjectPath parentPath)
          Invoked when the children of a project node are about to be scanned.
 

Method Detail

projectNode

void projectNode(ProjectPath nodePath)
Invoked when a node is read during project tree traversal.


shouldReadChildren

boolean shouldReadChildren(Object node,
                           ProjectPath parentPath)
Invoked when the children of a project node are about to be scanned. If handler returns false, children of the node (and trheir children) will be skipped. This allows handler to control traversal behavior by eliminating subtrees.



Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.