public interface Validator
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Get the logical name of the validator
|
boolean |
supports(Object subject)
Indicates if this validator supports the provided subject.
|
void |
validate(Object subject,
ValidationContext context)
Execute the validation
|
String getName()
String with the name of the validatorvoid validate(Object subject, ValidationContext context) throws ValidationException
subject - the subject of the validationcontext - the ValidationContextValidationException - if the validation constraints are not satisfiedboolean supports(Object subject)
subject - the subject of the validationtrue if this validator supports the subject otherwise falseCopyright © 2018 Latitude Srls. All rights reserved.