Serializable
, Comparable<ValidationAction>
public enum ValidationAction extends Enum<ValidationAction>
Enum Constant | Description |
---|---|
ERROR |
Documents must pass validation before the write occurs.
|
WARN |
Documents do not have to pass validation.
|
Modifier and Type | Method | Description |
---|---|---|
static ValidationAction |
fromString(String validationAction) |
Returns the validationAction from the string representation of a validation action.
|
String |
getValue() |
|
static ValidationAction |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ValidationAction[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValidationAction ERROR
public static final ValidationAction WARN
public static ValidationAction[] values()
for (ValidationAction c : ValidationAction.values()) System.out.println(c);
public static ValidationAction 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 nullpublic String getValue()
public static ValidationAction fromString(String validationAction)
validationAction
- the string representation of the validation action.