Package ddf.action

Interface MultiActionProvider


public interface MultiActionProvider
This class provides an Action for a given subject. Objects that the ActionProvider can handle are not restricted to a particular class and can be whatever the ActionProvider is able to handle.
See Also:
  • Method Details

    • getActions

      <T> List<Action> getActions(T subject)
      Assumes that canHandle(Object) for the has already been checked.
      Parameters:
      subject - object for which the ActionProvider is requested to provide an Action
      Returns:
      an Action object. If no action can be taken on the input, then Collections.emptyList() shall be returned
    • getId

      String getId()
      Returns:
      a unique identifier to distinguish the type of service this ActionProvider provides
    • canHandle

      <T> boolean canHandle(T subject)
      Checks if an ActionProvider supports a given subject.
      Parameters:
      subject - the input to check
      Returns:
      true if is supported, false otherwise.