Interface AnnotationAction


  • @OpenApiAll
    public interface AnnotationAction
    Annotation actions supporting multiple targets should implement this interface. Otherwise this action will not be available in browser for recursive execution or in validation results window for multiple selection.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean canExecute​(java.util.Collection<Annotation> annotations)
      Checks if possible to execute action together on all specified annotations.
      void execute​(java.util.Collection<Annotation> annotations)
      Executes action on specified target annotations.
    • Method Detail

      • execute

        void execute​(java.util.Collection<Annotation> annotations)
        Executes action on specified target annotations. This method will be invoked with such annotations that have the action.
        Parameters:
        annotations - action targets
      • canExecute

        boolean canExecute​(java.util.Collection<Annotation> annotations)
        Checks if possible to execute action together on all specified annotations.
        Parameters:
        annotations - target annotations
        Returns:
        true if action can be executed with specified annotations