org.apache.cayenne.util
Interface HierarchicalTreeVisitor

All Known Implementing Classes:
BaseTreeVisitor

public interface HierarchicalTreeVisitor

A hierarchical visitor interface used for tree structures traversal.

Author:
Andrus Adamchik

Method Summary
 HierarchicalTreeVisitor childVisitor(ProjectPath path, Class childType)
          Returns an instance of the child visitor for a given project path and a type of child.
 void onFinishNode(ProjectPath path)
          Invoked at the end of the annotation tree traversal, which is done in a depth-first manner.
 boolean onStartNode(ProjectPath path)
          Invoked in the beginning of the element subtree traversal.
 

Method Detail

onStartNode

boolean onStartNode(ProjectPath path)
Invoked in the beginning of the element subtree traversal. Traversal is done in a depth-first manner, so returning false from this method would suppress child elements traversal.


onFinishNode

void onFinishNode(ProjectPath path)
Invoked at the end of the annotation tree traversal, which is done in a depth-first manner.


childVisitor

HierarchicalTreeVisitor childVisitor(ProjectPath path,
                                     Class childType)
Returns an instance of the child visitor for a given project path and a type of child. Returning null would result in skipping the particular child type.



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