Interface ModelWalkerCallback
public interface ModelWalkerCallback
A callback which is required and notified by
CascadingModelWalker in the course of walking
through the model graph.-
Method Summary
Modifier and TypeMethodDescriptionvoidfoundNewDependencies(ModelWrapper parentWrapper, String attribute, Collection<ModelWrapper> dependencies) Notifies that a dependency has been found.booleanfoundNewWrapper(ModelWrapper wrapper) Notifies that a new model has been found.
-
Method Details
-
foundNewWrapper
Notifies that a new model has been found.- Parameters:
wrapper- the new model- Returns:
- true if walker should process the internals of the newly found model; false otherwise
-
foundNewDependencies
void foundNewDependencies(ModelWrapper parentWrapper, String attribute, Collection<ModelWrapper> dependencies) Notifies that a dependency has been found.- Parameters:
parentWrapper- the "owner" of dependenciesattribute- the attribute by which the dependencies have been founddependencies- the dependent models
-