T
- Type of the class for this validator.public abstract class GenericValidator<T> extends Object implements org.springframework.validation.Validator
Constructor and Description |
---|
GenericValidator() |
Modifier and Type | Method and Description |
---|---|
abstract void |
doValidate(T form,
org.springframework.validation.Errors errors) |
boolean |
supports(Class<?> clazz) |
void |
validate(Object target,
org.springframework.validation.Errors errors)
Calls doValidate.
|
public abstract void doValidate(T form, org.springframework.validation.Errors errors)
form
- The form to check.errors
- Errors.Validator.validate(Object, Errors)
public boolean supports(Class<?> clazz)
supports
in interface org.springframework.validation.Validator
clazz
- to test.public void validate(Object target, org.springframework.validation.Errors errors)
validate
in interface org.springframework.validation.Validator
Copyright © 2019 Communote team. All rights reserved.