Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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