Class AbstractEditPostProcessor

    • Constructor Detail

      • AbstractEditPostProcessor

        public AbstractEditPostProcessor()
    • Method Detail

      • applies

        public abstract boolean applies​(Actor parent,
                                        Actor oldActor,
                                        Actor newActor)
        Checks whether this post processor scheme applies to the current situation.
        Parameters:
        parent - the parent actor
        oldActor - the old actor
        newActor - the new, updated actor
        Returns:
        true if this post processor applies to the situation
      • doPostProcess

        protected abstract boolean doPostProcess​(Tree tree,
                                                 Actor parent,
                                                 Actor oldActor,
                                                 Actor newActor)
        Post-processes the tree.
        Parameters:
        tree - the tree to post-process
        parent - the parent actor
        oldActor - the old actor
        newActor - the new, updated actor
        Returns:
        true if tree got modified
      • postProcess

        public boolean postProcess​(Tree tree,
                                   Actor parent,
                                   Actor oldActor,
                                   Actor newActor)
        Post-processes the tree.
        Parameters:
        tree - the tree to post-process
        parent - the parent actor
        oldActor - the old actor
        newActor - the new, updated actor
        Returns:
        true if tree got modified
      • getPostProcessors

        public static Class[] getPostProcessors()
        Returns a list with classes of post-processors.
        Returns:
        the post-processor classes
      • apply

        public static boolean apply​(Tree tree,
                                    Actor parent,
                                    Actor oldActor,
                                    Actor newActor)
        Applies all the post-processors, if applicable.
        Parameters:
        tree - the tree that was modified
        parent - the parent actor of the modified actor
        oldActor - the old actor
        newActor - the new, updated actor
        Returns:
        true if tree got modified