Interface ModelWalkerCallback


  • public interface ModelWalkerCallback
    A callback which is required and notified by CascadingModelWalker in the course of walking through the model graph.
    • Method Detail

      • foundNewWrapper

        boolean foundNewWrapper​(ModelWrapper wrapper)
        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,
                                  java.lang.String attribute,
                                  java.util.Collection<ModelWrapper> dependencies)
        Notifies that a dependency has been found.
        Parameters:
        parentWrapper - the "owner" of dependencies
        attribute - the attribute by which the dependencies have been found
        dependencies - the dependent models