Enum Class PropositionType
- All Implemented Interfaces:
Serializable,Comparable<PropositionType>,Constable,Coded
Enumeration for PropositionTypes. SIMPLE or COMPOUND.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionuse this flag with the static factory to get aPropositionTypeCompounduse this flag with the static factory to get aPropositionTypeSimple -
Field Summary
FieldsModifier and TypeFieldDescriptionSet of valid type codes -
Method Summary
Modifier and TypeMethodDescriptionstatic PropositionTypeCreate a PropositionType for the given codegetCode()Returns the operator code for this evaluation operator.static PropositionTypeReturns the enum constant of this class with the specified name.static PropositionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMPOUND
use this flag with the static factory to get aPropositionTypeCompound -
SIMPLE
use this flag with the static factory to get aPropositionTypeSimple
-
-
Field Details
-
VALID_TYPE_CODES
Set of valid type codes
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getCode
Returns the operator code for this evaluation operator. -
fromCode
Create a PropositionType for the given code- Parameters:
code- to type the PropositionType- Returns:
- PropositionType of the given code
- Throws:
IllegalArgumentException- if the given code does not exist
-