public enum IdentityValidator extends Enum<IdentityValidator> implements BodyValidator
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
boolean |
isBasicValidator()
Basic validators run essential checks and are run always if validate is called.
If this method returns false and the caller of the validator respects this property, the checks will only be run if the debug or validation option is activated. |
static IdentityValidator |
v() |
void |
validate(Body body,
List<ValidationException> exception)
Validates the given body and saves all validation errors in the given list.
|
static IdentityValidator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IdentityValidator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IdentityValidator INSTANCE
public static IdentityValidator[] values()
for (IdentityValidator c : IdentityValidator.values()) System.out.println(c);
public static IdentityValidator 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 static IdentityValidator v()
public void validate(Body body, List<ValidationException> exception)
BodyValidator
validate
in interface BodyValidator
body
- the body to checkexception
- the list of exceptionspublic boolean isBasicValidator()
BodyValidator
isBasicValidator
in interface BodyValidator