|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ValidationState>
net.sourceforge.stripes.validation.ValidationState
public 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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
static ValidationState |
valueOf(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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ValidationState ALWAYS
public static final ValidationState NO_ERRORS
public static final ValidationState DEFAULT
Method Detail |
---|
public static ValidationState[] values()
for (ValidationState c : ValidationState.values()) System.out.println(c);
public static ValidationState valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |