Annotation Types Summary |
AssertFalse |
Assert that a method or field will be false when validated |
AssertTrue |
Assert that a method or field will be true when validated |
ConstraintValidator |
Link between an constraint annotation and its constraint validation implementation
A given constraint annotation should be annotated by a @ValidatorClass
annotation to refer to its constraint validation implementation
(Taken from JSR-303 example implementation in specification document.) |
Email |
Asserts that the field or method is a string representing
an email when validated. |
Future |
Assert that a method or field will be a date in the future when validated |
GroupSequence |
Groups are useful to define subsets of constraints for validation purposes. |
GroupSequences |
Allows more than one GroupSequence to be defined on a class. |
Length |
Asserts that the field or method will have a length between
the minimum and maximum when validated. |
Max |
Asserts the maximum value of the field or method when validated |
Min |
Asserts what the minimum value of the field or method should
be when validated. |
NotEmpty |
Asserts that the field or method is not empty when validated. |
NotNull |
Asserts that the given field or method is not null when validated. |
Past |
Assert that a method or field will be a date in the past when validated |
Pattern |
Asserts that the field or method matches the given regex pattern
when validated. |
Patterns |
Allows the use of more than one pattern on a given field
or method. |
Range |
Asserts that the value contained by the field or method is between minimum and maximum
when validated. |
Size |
Asserts that the field or method will have a (collection, array, or map) size between
the minimum and maximum when validated. |
Valid |
Marks that a given field or method needs to be validated on its own. |