Enum Class ValidationActionType
- All Implemented Interfaces:
Serializable,Comparable<ValidationActionType>,Constable,org.kuali.rice.core.api.mo.common.Coded
public enum ValidationActionType
extends Enum<ValidationActionType>
implements org.kuali.rice.core.api.mo.common.Coded
enum used to specify the action type to be specified in the vended
s. WARNING ERROR
invalid reference
ValidationAction
- 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 aValidationActionTypeServicethat creates error actions.use this flag with the static factory to get aValidationActionTypeServicethat creates warning actions. -
Field Summary
FieldsModifier and TypeFieldDescriptionSet of valid type codes -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationActionTypefor each type, check the input with the uppercase type code, and returns any match.static ValidationActionTypefromString(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 ValidationActionTypeReturns the enum constant of this class with the specified name.static ValidationActionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WARNING
use this flag with the static factory to get aValidationActionTypeServicethat creates warning actions. -
ERROR
use this flag with the static factory to get aValidationActionTypeServicethat creates error actions.
-
-
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<ValidationActionType>
-
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 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.
-