Top Description Interfaces Classes
[default module]

Package org.springframework.validation

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Provides data binding and validation functionality, for usage in business and/or UI layers.

Interface Summary

Modifier and TypeInterface and Description
public interface
BindingErrorProcessor

Strategy for processing DataBinder's missing field errors, and for translating a PropertyAccessException to a FieldError.

public interface
BindingResult

General interface that represents binding results.

public interface
Errors

Stores and exposes information about data-binding and validation errors for a specific object.

public interface
MessageCodeFormatter

A strategy interface for formatting message codes.

public interface
MessageCodesResolver

Strategy interface for building message codes from validation error codes.

public interface
SmartValidator

Extended variant of the Validator interface, adding support for validation 'hints'.

public interface
Validator

A validator for application-specific objects.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractBindingResult

Abstract implementation of the BindingResult interface and its super-interface Errors.

public abstract class
AbstractErrors

Abstract implementation of the Errors interface.

public abstract class
AbstractPropertyBindingResult

Abstract base class for BindingResult implementations that work with Spring's org.springframework.beans.PropertyAccessor mechanism.

public class
BeanPropertyBindingResult

Default implementation of the Errors and BindingResult interfaces, for the registration and evaluation of binding errors on JavaBean objects.

public class
BindException

Thrown when binding errors are considered fatal.

public abstract class
BindingResultUtils

Convenience methods for looking up BindingResults in a model Map.

public class
DataBinder

Binder that allows applying property values to a target object via constructor and setter injection, and also supports validation and binding result analysis.

public class
public class
DefaultMessageCodesResolver

Default implementation of the MessageCodesResolver interface.

public class
DirectFieldBindingResult

Special implementation of the Errors and BindingResult interfaces, supporting registration and evaluation of binding errors on value objects.

public class
FieldError

Encapsulates a field error, that is, a reason for rejecting a specific field value.

public class
MapBindingResult

Map-based implementation of the BindingResult interface, supporting registration and evaluation of binding errors on Map attributes.

public class
ObjectError

Encapsulates an object error, that is, a global reason for rejecting an object.

public class
SimpleErrors

A simple implementation of the Errors interface, managing global errors and field errors for a top-level target object.

pack-priv class
TypedValidator<
the target object type
T
>

Validator instance returned by Validator#forInstanceOf(Class, BiConsumer) and Validator#forType(Class, BiConsumer).

public abstract class
ValidationUtils

Utility class offering convenient methods for invoking a Validator and for rejecting empty fields.