Enum ComparisonCriterion.Factory
java.lang.Object
java.lang.Enum<ComparisonCriterion.Factory>
org.tweetyproject.arg.delp.semantics.ComparisonCriterion.Factory
- All Implemented Interfaces:
Serializable
,Comparable<ComparisonCriterion.Factory>
,Constable
- Enclosing class:
ComparisonCriterion
Enumeration of factory types for creating instances of
ComparisonCriterion
subclasses.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionFactory type for creating an instance ofEmptyCriterion
.Factory type for creating an instance ofGeneralizedSpecificity
.A placeholder factory type that is not currently used in thecreate(String)
method but may be implemented for future use. -
Method Summary
Modifier and TypeMethodDescriptionstatic ComparisonCriterion
Creates an instance of aComparisonCriterion
subclass based on the provided name.static ComparisonCriterion.Factory
Returns the enum constant of this type with the specified name.static ComparisonCriterion.Factory[]
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
-
EMPTY
Factory type for creating an instance ofEmptyCriterion
. -
GEN_SPEC
Factory type for creating an instance ofGeneralizedSpecificity
. -
PRIORITY
A placeholder factory type that is not currently used in thecreate(String)
method but may be implemented for future use.
-
-
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
-
create
Creates an instance of aComparisonCriterion
subclass based on the provided name.The name should correspond to one of the factory types defined in this enum. If the name does not match any of the defined factory types, an
IllegalArgumentException
is thrown.- Parameters:
name
- The name of the factory type, which should be one of the enum constants (EMPTY
,GEN_SPEC
, orPRIORITY
).- Returns:
- An instance of the corresponding
ComparisonCriterion
subclass. - Throws:
IllegalArgumentException
- if the provided name does not match any of the defined factory types.
-