public enum ValidationState extends java.lang.Enum<ValidationState>
Enumeration that describes the choices for when validation methods should be run. Allows developers to choose between having their validation methods run always, only when there are no errors, or to adopt the system default policy.
Enum Constant and Description |
---|
ALWAYS
Specifies that validations should be applied in all conditions without regard for whether
there are pre-existing validation errors.
|
DEFAULT
Specifies that the decision of whether or not the validation should be applied when
errors exist should be made by consulting the system level default.
|
NO_ERRORS
Specifies that validations should be applied only when there are no validation errors.
|
Modifier and Type | Method and Description |
---|---|
static ValidationState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ValidationState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValidationState ALWAYS
public static final ValidationState NO_ERRORS
public static final ValidationState DEFAULT
public static ValidationState[] values()
for (ValidationState c : ValidationState.values()) System.out.println(c);
public static ValidationState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null? Copyright 2005-2006, Stripes Development Team.