Enum Class ValidationRuleType
- All Implemented Interfaces:
Serializable,Comparable<ValidationRuleType>,Constable,org.kuali.rice.core.api.mo.common.Coded
public enum ValidationRuleType
extends Enum<ValidationRuleType>
implements org.kuali.rice.core.api.mo.common.Coded
enum used to specify the validationRule type to be specified in the vended
s. INVALID VALID
invalid reference
ValidationRule
- 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 Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionSet of valid type codes -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationRuleTypefor each type, check the input with the uppercase version of the type code, and returns any match.static ValidationRuleTypefromString(String s) for each type, check the input with the lowercase version of the type name, and returns any match.getCode()The code value for this object.toString()static ValidationRuleTypeReturns the enum constant of this class with the specified name.static ValidationRuleType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID
use this flag with the static factory to get a ValidationRuleTypeService} that creates warning validationRules. -
VALID
use this flag with the static factory to get a ValidationRuleTypeService} that creates error validationRules.
-
-
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
-
toString
- Overrides:
toStringin classEnum<ValidationRuleType>
-
fromString
for each type, check the input with the lowercase version of the type name, and returns any match.- Parameters:
s- the type to retrieve- Returns:
- the type, or null if a match is not found.
-
fromCode
for each type, check the input with the uppercase version of the type code, and returns any match.- Parameters:
code- the type to retrieve- Returns:
- the type, or null if a match is not found.
-
getCode
The code value for this object. In general a code value cannot be null or a blank string.- Specified by:
getCodein interfaceorg.kuali.rice.core.api.mo.common.Coded- Returns:
- the code value for this object.
-