Enum PafReasonerCalleeFactory.Command

java.lang.Object
java.lang.Enum<PafReasonerCalleeFactory.Command>
org.tweetyproject.web.services.paf.PafReasonerCalleeFactory.Command
All Implemented Interfaces:
Serializable, Comparable<PafReasonerCalleeFactory.Command>, Constable
Enclosing class:
PafReasonerCalleeFactory

public static enum PafReasonerCalleeFactory.Command extends Enum<PafReasonerCalleeFactory.Command>
Commands supported by the PAF web service.
  • Enum Constant Details

  • Field Details

    • id

      public final String id
      String identifier used in the JSON request.
    • label

      public final String label
      Human-readable label.
  • Method Details

    • values

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

      public static PafReasonerCalleeFactory.Command valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getCommand

      public static PafReasonerCalleeFactory.Command getCommand(String id)
      Looks up a command by its string identifier.
      Parameters:
      id - the command identifier
      Returns:
      the matching PafReasonerCalleeFactory.Command, or null if not found