Package org.springframework.validation
@NullMarked
package org.springframework.validation
Provides data binding and validation functionality,
for usage in business and/or UI layers.
-
ClassDescriptionAbstract implementation of the
BindingResultinterface and its super-interfaceErrors.Abstract implementation of theErrorsinterface.Abstract base class forBindingResultimplementations that work with Spring'sPropertyAccessormechanism.Default implementation of theErrorsandBindingResultinterfaces, for the registration and evaluation of binding errors on JavaBean objects.Thrown when binding errors are considered fatal.Strategy for processingDataBinder's missing field errors, and for translating aPropertyAccessExceptionto aFieldError.General interface that represents binding results.Convenience methods for looking up BindingResults in a model Map.Binder that allows applying property values to a target object via constructor and setter injection, and also supports validation and binding result analysis.Strategy to determine the name of the value to bind to a method parameter.Strategy forconstructor bindingto look up the values to bind to a given constructor parameter.DefaultBindingErrorProcessorimplementation.Default implementation of theMessageCodesResolverinterface.Common message code formats.Special implementation of the Errors and BindingResult interfaces, supporting registration and evaluation of binding errors on value objects.Stores and exposes information about data-binding and validation errors for a specific object.Encapsulates a field error, that is, a reason for rejecting a specific field value.Map-based implementation of the BindingResult interface, supporting registration and evaluation of binding errors on Map attributes.A strategy interface for formatting message codes.Strategy interface for building message codes from validation error codes.Encapsulates an object error, that is, a global reason for rejecting an object.A simple implementation of theErrorsinterface, managing global errors and field errors for a top-level target object.Extended variant of theValidatorinterface, adding support for validation 'hints'.Utility class offering convenient methods for invoking aValidatorand for rejecting empty fields.A validator for application-specific objects.