# Package org.springframework.validation

@NonNullApi @NonNullFields package org.springframework.validation
Provides data binding and validation functionality, for usage in business and/or UI layers.

Related Packages
Package
Description
org.springframework.validation.annotation
Support classes for annotation-based constraint evaluation, for example, using a JSR-303 Bean Validation provider.
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.
org.springframework.validation.method
Abstractions and support classes for method validation, independent of the underlying validation library.
org.springframework.validation.support
Support classes for handling validation results.
Class
Description
AbstractBindingResult
Abstract implementation of the `BindingResult` interface and its super-interface `Errors`.
AbstractErrors
Abstract implementation of the `Errors` interface.
AbstractPropertyBindingResult
Abstract base class for `BindingResult` implementations that work with Spring's `PropertyAccessor` mechanism.
BeanPropertyBindingResult
Default implementation of the `Errors` and `BindingResult` interfaces, for the registration and evaluation of binding errors on JavaBean objects.
BindException
Thrown when binding errors are considered fatal.
BindingErrorProcessor
Strategy for processing `DataBinder`'s missing field errors, and for translating a `PropertyAccessException` to a `FieldError`.
BindingResult
General interface that represents binding results.
BindingResultUtils
Convenience methods for looking up BindingResults in a model Map.
DataBinder
Binder that allows applying property values to a target object via constructor and setter injection, and also supports validation and binding result analysis.
DataBinder.NameResolver
Strategy to determine the name of the value to bind to a method parameter.
DataBinder.ValueResolver
Strategy for `constructor binding` to look up the values to bind to a given constructor parameter.
DefaultBindingErrorProcessor
Default `BindingErrorProcessor` implementation.
DefaultMessageCodesResolver
Default implementation of the `MessageCodesResolver` interface.
DefaultMessageCodesResolver.Format
Common message code formats.
DirectFieldBindingResult
Special implementation of the Errors and BindingResult interfaces, supporting registration and evaluation of binding errors on value objects.
Errors
Stores and exposes information about data-binding and validation errors for a specific object.
FieldError
Encapsulates a field error, that is, a reason for rejecting a specific field value.
MapBindingResult
Map-based implementation of the BindingResult interface, supporting registration and evaluation of binding errors on Map attributes.
MessageCodeFormatter
A strategy interface for formatting message codes.
MessageCodesResolver
Strategy interface for building message codes from validation error codes.
ObjectError
Encapsulates an object error, that is, a global reason for rejecting an object.
SimpleErrors
A simple implementation of the `Errors` interface, managing global errors and field errors for a top-level target object.
SmartValidator
Extended variant of the `Validator` interface, adding support for validation 'hints'.
ValidationUtils
Utility class offering convenient methods for invoking a `Validator` and for rejecting empty fields.
Validator
A validator for application-specific objects.