Class Summary |
AssertFalseValidator |
Check if a given object is false or not |
AssertTrueValidator |
Check whether an element is true or not |
ClassValidator<T> |
Engine that take a bean and check every expressed annotation restrictions |
EmailValidator |
Check that a given string is a well-formed email address |
Environment |
Hibernate Validator Event properties
The properties are retrieved from Hibernate
(hibernate.properties, hibernate.cfg.xml, persistence.xml or Configuration API) |
FutureValidator |
Check that a given date is in the future, and apply the same restriction
at the DB level |
InvalidValue |
A single violation of a class level or method level constraint. |
LengthValidator |
Do check a length restriction on a string, and apply expected contraints on hibernate metadata. |
MaxValidator |
Do check a max restriction on a numeric (whether and actual number or its string representation,
and apply expected contraints on hibernate metadata. |
MinValidator |
Do check a min restriction on a numeric (whether and actual number or its string representation,
and apply expected contraints on hibernate metadata. |
NotEmptyValidator |
Check the non emptyness of the element |
NotNullValidator |
Check a not null restriction on an object
and apply the equivalent constraint on hibernate metadata. |
PastValidator |
Check that a given date is in the past, and apply the same restriction
at the DB level |
PatternValidator |
check if a given element match the regular expression |
RangeValidator |
The value has to be in a defined range, the constraint is also applied on DB |
SizeValidator |
Check the size range according to the element |
Annotation Types Summary |
AssertFalse |
The annotated property has to be false. |
AssertTrue |
The annotated element has to be true |
Email |
The string has to be a well-formed email address |
Future |
Check that a Date, a Calendar, or a string representation apply in the future |
Length |
Apply some length restrictions to the annotated element. |
Max |
max restriction on a numeric annotated element |
Min |
min restriction on a numeric annotated elemnt (or the string representation of a numeric) |
NotEmpty |
Check that a String is not empty (not null and length > 0)
or that a Collection (or array) is not empty (not null and length > 0) |
NotNull |
not null constraint |
Past |
Check that a Date, a Calendar, or a string representation apply in the past |
Pattern |
The annotated element must follow the regexp pattern |
Range |
The annotated elemnt has to be in the appropriate range. |
Size |
Size range for Arrays, Collections or Maps |
Valid |
Enables recursive validation of an associated object |
ValidatorClass |
Link between an constraint annotation and it's validator implementation |