Class | Description |
---|---|
DomainValidator |
Validator that validates a group of constraints inside a constraint.
|
GreaterThanValidator |
Validator that checks if the value is less than another value.
|
LessThanValidator |
Validator that checks if the value is less than another value.
|
MaxValidator |
Validator that checks a maximum size requirement.
|
MinValidator |
Validator that checks a minimum size requirement.
|
MultiTypeValidator |
A composite validator that selects the most suitable validator based on the
type of the target value.
|
NotEmptyValidator |
Validator for objects that cannot be empty.
|
NotNullValidator |
Validator that accepts only non null values.
|
PatternValidator |
Validator that checks against a defined pattern in the String representation
of an object.
|
SizeValidator |
Base class for validators that compares object lengths and sizes.
|
ValidsValidator |
Validator for items of an array, a collection or a map.
|
ValidValidator |
Validator that checks if the value is valid by validating its elements.
|
Annotation Type | Description |
---|---|
GreaterThan |
Indicates that the value should be greater than another value.
|
LessThan |
Indicates that the value should be less than another value.
|
Max |
Constraint that defines a maximum value that an element should have.
|
Min |
Constraint that defines a minimum value that an element should have.
|
NotEmpty |
Indicates that the element must not be empty.
|
NotNull |
Indicates that the element must not be
null . |
Pattern |
Indicates that the annotated element should follow a given pattern.
|
Valid |
Indicates that the element must be valid using a validation engine and its
invalid elements will be included in the validation result.
|
Valids |
Indicates that all items must be valid.
|