public enum ValidationLevel extends Enum<ValidationLevel>
Enum Constant and Description |
---|
MODERATE
Applies validation rules to inserts and to updates on existing valid documents.
|
OFF
No validation for inserts or updates.
|
STRICT
Apply validation rules to all inserts and all updates.
|
Modifier and Type | Method and Description |
---|---|
static ValidationLevel |
fromString(String validationLevel)
Returns the ValidationLevel from the string representation of the validation level.
|
String |
getValue() |
static ValidationLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValidationLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValidationLevel OFF
public static final ValidationLevel STRICT
public static final ValidationLevel MODERATE
Does not apply rules to updates on existing invalid documents.
public static ValidationLevel[] values()
for (ValidationLevel c : ValidationLevel.values()) System.out.println(c);
public static ValidationLevel 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 ValidationLevel fromString(String validationLevel)
validationLevel
- the string representation of the validation level.