Enum Class LogicalOperator
- All Implemented Interfaces:
Serializable,Comparable<LogicalOperator>,Constable,org.kuali.rice.core.api.mo.common.Coded
public enum LogicalOperator
extends Enum<LogicalOperator>
implements org.kuali.rice.core.api.mo.common.Coded
Enum for the representation of the Logical Operators AND OR
- 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 aLogicalOperatorANDuse this flag with the static factory to get aLogicalOperatorOR -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Collection<String> Collection<String> OP_CODE_NAMESstatic final Collection<String> Collection<String> OP_CODES -
Method Summary
Modifier and TypeMethodDescriptionstatic LogicalOperatorCreate a LogicalOperator from the given codegetCode()toString()static LogicalOperatorReturns the enum constant of this class with the specified name.static LogicalOperator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AND
use this flag with the static factory to get aLogicalOperatorAND -
OR
use this flag with the static factory to get aLogicalOperatorOR
-
-
Field Details
-
OP_CODES
Collection<String> OP_CODES -
OP_CODE_NAMES
Collection<String> OP_CODE_NAMES
-
-
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
- Specified by:
getCodein interfaceorg.kuali.rice.core.api.mo.common.Coded
-
fromCode
Create a LogicalOperator from the given code- Parameters:
code- used to type LogicalOperator- Returns:
- LogicalOperator whose code is given
- Throws:
IllegalArgumentException- if the code does not exist
-
toString
- Overrides:
toStringin classEnum<LogicalOperator>
-