Enum Class ManagerAction

java.lang.Object
java.lang.Enum<ManagerAction>
org.tasktide.core.manager.command.ManagerAction
All Implemented Interfaces:
Serializable, Comparable<ManagerAction>, Constable

public enum ManagerAction extends Enum<ManagerAction>
Enum to support valid actions covered by the Manager
  • Enum Constant Details

  • Method Details

    • values

      public static ManagerAction[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ManagerAction valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • makeCommand

      public abstract ManagerCommand makeCommand(ManagerTarget target, CommandSpec cmdSpec)
      Abstract method for values to create their corresponding AbstractCommand
      Parameters:
      target -
      cmdSpec -
      Returns:
      ManagerCommand
    • isManagerAction

      public abstract boolean isManagerAction(String query)
    • isManagerAction

      public abstract boolean isManagerAction(ManagerAction query)
    • getCommandType

      public abstract CommandType getCommandType()
    • indexOf

      public static int indexOf(String name)
      Fetch index of query
      Parameters:
      name -
      Returns:
      >0/-1
    • hasQuery

      public static boolean hasQuery(String query)
      Check if query is a valid action
      Parameters:
      query -
      Returns:
    • get

      public static ManagerAction get(String query)
      Get manager action matching query
      Parameters:
      query -
      Returns:
    • valuesString

      public static String valuesString()
      Represent enum as string
      Returns:
      String