| Package | Description | 
|---|---|
| org.springframework.validation | Provides data binding and validation functionality,
 for usage in business and/or UI layers. | 
| org.springframework.validation.beanvalidation | Support classes for integrating a JSR-303 Bean Validation provider
 (such as Hibernate Validator) into a Spring ApplicationContext
 and in particular with Spring's data binding and validation APIs. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | BindingResultGeneral interface that represents binding results. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AbstractBindingResultAbstract implementation of the  BindingResultinterface and
 its super-interfaceErrors. | 
| class  | AbstractErrorsAbstract implementation of the  Errorsinterface. | 
| class  | AbstractPropertyBindingResultAbstract base class for  BindingResultimplementations that work with
 Spring'sPropertyAccessormechanism. | 
| class  | BeanPropertyBindingResultDefault implementation of the  ErrorsandBindingResultinterfaces, for the registration and evaluation of binding errors on
 JavaBean objects. | 
| class  | BindExceptionThrown when binding errors are considered fatal. | 
| class  | DirectFieldBindingResultSpecial implementation of the Errors and BindingResult interfaces,
 supporting registration and evaluation of binding errors on value objects. | 
| class  | MapBindingResultMap-based implementation of the BindingResult interface,
 supporting registration and evaluation of binding errors on
 Map attributes. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | AbstractBindingResult. addAllErrors(Errors errors) | 
| void | Errors. addAllErrors(Errors errors)Add all errors from the given  Errorsinstance to thisErrorsinstance. | 
| void | BindException. addAllErrors(Errors errors) | 
| static void | ValidationUtils. invokeValidator(Validator validator,
               Object target,
               Errors errors) | 
| static void | ValidationUtils. invokeValidator(Validator validator,
               Object target,
               Errors errors,
               Object... validationHints) | 
| static void | ValidationUtils. rejectIfEmpty(Errors errors,
             String field,
             String errorCode)Reject the given field with the given error code if the value is empty. | 
| static void | ValidationUtils. rejectIfEmpty(Errors errors,
             String field,
             String errorCode,
             Object[] errorArgs)Reject the given field with the given error code and error arguments
 if the value is empty. | 
| static void | ValidationUtils. rejectIfEmpty(Errors errors,
             String field,
             String errorCode,
             Object[] errorArgs,
             String defaultMessage)Reject the given field with the given error code, error arguments
 and default message if the value is empty. | 
| static void | ValidationUtils. rejectIfEmpty(Errors errors,
             String field,
             String errorCode,
             String defaultMessage)Reject the given field with the given error code and default message
 if the value is empty. | 
| static void | ValidationUtils. rejectIfEmptyOrWhitespace(Errors errors,
                         String field,
                         String errorCode)Reject the given field with the given error code if the value is empty
 or just contains whitespace. | 
| static void | ValidationUtils. rejectIfEmptyOrWhitespace(Errors errors,
                         String field,
                         String errorCode,
                         Object[] errorArgs)Reject the given field with the given error code and error arguments
 if the value is empty or just contains whitespace. | 
| static void | ValidationUtils. rejectIfEmptyOrWhitespace(Errors errors,
                         String field,
                         String errorCode,
                         Object[] errorArgs,
                         String defaultMessage)Reject the given field with the given error code, error arguments
 and default message if the value is empty or just contains whitespace. | 
| static void | ValidationUtils. rejectIfEmptyOrWhitespace(Errors errors,
                         String field,
                         String errorCode,
                         String defaultMessage)Reject the given field with the given error code and default message
 if the value is empty or just contains whitespace. | 
| void | Validator. validate(Object target,
        Errors errors)Validate the supplied  targetobject, which must be
 of aClassfor which theValidator.supports(Class)method
 typically has (or would) returntrue. | 
| void | SmartValidator. validate(Object target,
        Errors errors,
        Object... validationHints)Validate the supplied  targetobject, which must be of a type ofClassfor which theValidator.supports(Class)method typically returnstrue. | 
| default void | SmartValidator. validateValue(Class<?> targetType,
             String fieldName,
             Object value,
             Errors errors,
             Object... validationHints)Validate the supplied value for the specified field on the target type,
 reporting the same validation errors as if the value would be bound to
 the field on an instance of the target class. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | SpringValidatorAdapter. processConstraintViolations(Set<ConstraintViolation<Object>> violations,
                           Errors errors)Process the given JSR-303 ConstraintViolations, adding corresponding errors to
 the provided Spring  Errorsobject. | 
| void | SpringValidatorAdapter. validate(Object target,
        Errors errors) | 
| void | SpringValidatorAdapter. validate(Object target,
        Errors errors,
        Object... validationHints) | 
| void | SpringValidatorAdapter. validateValue(Class<?> targetType,
             String fieldName,
             Object value,
             Errors errors,
             Object... validationHints) |