Enum ValidationStateEnum
- java.lang.Object
-
- java.lang.Enum<ValidationStateEnum>
-
- de.knightsoftnet.validators.client.decorators.ValidationStateEnum
-
- All Implemented Interfaces:
Serializable,Comparable<ValidationStateEnum>
public enum ValidationStateEnum extends Enum<ValidationStateEnum>
State of the validation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOT_VALIDATEDcurrent entry was not validated.VALIDATION_FAILEDvalidation was done, but was not successful.VALIDATION_OKvalidation was done and was successful.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValidationStateEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static ValidationStateEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_VALIDATED
public static final ValidationStateEnum NOT_VALIDATED
current entry was not validated.
-
VALIDATION_FAILED
public static final ValidationStateEnum VALIDATION_FAILED
validation was done, but was not successful.
-
VALIDATION_OK
public static final ValidationStateEnum VALIDATION_OK
validation was done and was successful.
-
-
Method Detail
-
values
public static ValidationStateEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ValidationStateEnum c : ValidationStateEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValidationStateEnum valueOf(String name)
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
-
-