Enum DungReasonerCalleeFactory.Command
java.lang.Object
java.lang.Enum<DungReasonerCalleeFactory.Command>
org.tweetyproject.web.services.dung.DungReasonerCalleeFactory.Command
- All Implemented Interfaces:
Serializable
,Comparable<DungReasonerCalleeFactory.Command>
,Constable
- Enclosing class:
DungReasonerCalleeFactory
public static enum DungReasonerCalleeFactory.Command
extends Enum<DungReasonerCalleeFactory.Command>
Enumeration of commands supported by the factory, each with a unique ID and label.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCommand
(String id) Retrieves the Command enum based on the provided ID.Returns the enum constant of this type with the specified name.static DungReasonerCalleeFactory.Command[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
GET_MODELS
get models -
GET_MODEL
get model
-
-
Field Details
-
id
ID of the command -
label
Label of the command
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getCommand
Retrieves the Command enum based on the provided ID.- Parameters:
id
- ID of the command- Returns:
- The corresponding Command enum, or null if not found
-