org.javagen.agile.core.visitor
Interface Visitor

All Superinterfaces:
Visit
All Known Subinterfaces:
DatabaseVisitor, OOVisitor
All Known Implementing Classes:
AutoIncrementFinderVisitor, DefaultDatabaseVisitor, DefaultOOVisitor, DefaultValueVisitor, DefaultVisitor, EmitterVisitor, IdAssignerDatabaseVisitor, IdAssignerOOVisitor, IdAssignerVisitor, IdOverrideVisitor, IndexBuilderVisitor, LinkTableFinderVisitor, RegexRenameVisitor, TypeLookupVisitor, UniqueColumnTypeVisitor, UniquePKFinderVisitor

public interface Visitor
extends Visit

Generic visitor interface. Can limit node visitation using an itinerary.

Author:
Richard Easterling

Method Summary
 Set<String> itinerary()
          A way to limit node traversal to a subset of model instances.
 void visit(Model model)
          Called to perform a specific process on a model instance.
 

Method Detail

itinerary

Set<String> itinerary()
A way to limit node traversal to a subset of model instances.

Returns:
set of tags defining a subset of model types to visit or null if all nodes should be visited.

visit

void visit(Model model)
Called to perform a specific process on a model instance. May not be called if an itinerary is provided that does not match this model instance.

Specified by:
visit in interface Visit
Parameters:
model - instance to visit.


Copyright 2006-2006-2007 Outsource Cafe Inc.. All Rights Reserved.