程序包 org.springframework.validation
Provides data binding and validation functionality, for usage in business and/or UI layers.
接口概要 接口 说明 BindingErrorProcessor Strategy for processingDataBinder
's missing field errors, and for translating aPropertyAccessException
to aFieldError
.BindingResult General interface that represents binding results.Errors Stores and exposes information about data-binding and validation errors for a specific object.MessageCodeFormatter A strategy interface for formatting message codes.MessageCodesResolver Strategy interface for building message codes from validation error codes.SmartValidator Extended variant of theValidator
interface, adding support for validation 'hints'.Validator A validator for application-specific objects.类概要 类 说明 AbstractBindingResult Abstract implementation of theBindingResult
interface and its super-interfaceErrors
.AbstractErrors Abstract implementation of theErrors
interface.AbstractPropertyBindingResult Abstract base class forBindingResult
implementations that work with Spring'sPropertyAccessor
mechanism.BeanPropertyBindingResult Default implementation of theErrors
andBindingResult
interfaces, for the registration and evaluation of binding errors on JavaBean objects.BindingResultUtils Convenience methods for looking up BindingResults in a model Map.DataBinder Binder that allows for setting property values onto a target object, including support for validation and binding result analysis.DefaultBindingErrorProcessor DefaultBindingErrorProcessor
implementation.DefaultMessageCodesResolver Default implementation of theMessageCodesResolver
interface.DirectFieldBindingResult Special implementation of the Errors and BindingResult interfaces, supporting registration and evaluation of binding errors on value objects.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.ObjectError Encapsulates an object error, that is, a global reason for rejecting an object.ValidationUtils Utility class offering convenient methods for invoking aValidator
and for rejecting empty fields.枚举概要 枚举 说明 DefaultMessageCodesResolver.Format Common message code formats.异常错误概要 异常错误 说明 BindException Thrown when binding errors are considered fatal.