public static enum Validator.Action extends Enum<Validator.Action>
Validator instances are normally applied in sequence in a
chain of responsibility pattern orchestrated by the caller.
The sequence is regarded as completed when all validators have been called,
or when the first returns a DONE value. This can be used to
short-circuit evaluation in the case where the problem detected would
invalidate subsequent tests.| Enum Constant and Description |
|---|
CONTINUE
Evaluation of other
Validators may proceed. |
DONE
Evaluation of other
Validators should not proceed. |
| Modifier and Type | Method and Description |
|---|---|
static Validator.Action |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Validator.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Validator.Action CONTINUE
Validators may proceed.public static final Validator.Action DONE
Validators should not proceed.public static Validator.Action[] values()
for (Validator.Action c : Validator.Action.values()) System.out.println(c);
public static Validator.Action valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 1999–2016. All rights reserved.