public interface SmartValidator extends Validator
Validatorinterface, adding support for validation 'hints'.
|Modifier and Type||Method and Description|
Validate the supplied
void validate(java.lang.Object target, Errors errors, java.lang.Object... validationHints)
targetobject, which must be of a
Classfor which the
Validator.supports(Class)method typically has (or would) return
errors instance can be used to report any
resulting validation errors.
This variant of
validate supports validation hints, such as
validation groups against a JSR-303 provider (in this case, the provided hint
objects need to be annotation arguments of type
Note: Validation hints may get ignored by the actual target
in which case this method is supposed to be behave just like its regular
Validator.validate(Object, Errors) sibling.
target- the object that is to be validated (can be
errors- contextual state about the validation process (never
validationHints- one or more hint objects to be passed to the validation engine