- Type Parameters:
T- type of the validated object
A (usually generated) validator for a specific type.
The validator implements this interface and must be named with the fully qualified class name of the annotated type.
The generation is triggered by the Validation.Validated annotation.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheck(ValidationContext context, T instance) Validation the object instance that it is valid.voidcheck(ValidationContext context, T instance, String propertyName) Validation a single property only.voidcheckProperty(ValidationContext context, String propertyName, Object value) Validation a single property value.
-
Method Details
-
check
Validation the object instance that it is valid.- Parameters:
context- validation contextinstance- instance to validate- See Also:
-
check
Validation a single property only.- Parameters:
context- validation contextinstance- instance to validatepropertyName- name of the property to validate- See Also:
-
checkProperty
Validation a single property value.- Parameters:
context- validation contextpropertyName- name of the property to validatevalue- value of the property to validate- See Also:
-