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.