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

    Modifier and Type
    Method
    Description
    boolean
    Checks if possible to execute action together on all specified annotations.
    void
    Executes action on specified target annotations.
  • Method Details

    • execute

      void execute(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(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