org.springframework.validation |
Provides data binding and validation functionality,
for usage in business and/or UI layers.
|
Java Source File Name | Type | Comment |
AbstractBindingResult.java | Class | Abstract implementation of the
BindingResult interface and
its super-interface
Errors . |
AbstractPropertyBindingResult.java | Class | Abstract base class for BindingResult implementations that work with
Spring's PropertyAccessor mechanism. |
BeanPropertyBindingResult.java | Class | Default implementation of the
Errors and
BindingResult interfaces, for the registration and evaluation of binding errors on
JavaBean objects.
Performs standard JavaBean property access, also supporting nested
properties. |
BindException.java | Class | Thrown when binding errors are considered fatal. |
BindingErrorProcessor.java | Interface | Strategy for processing DataBinder 's missing field errors,
and for translating a PropertyAccessException to a
FieldError .
The error processor is pluggable so you can treat errors differently
if you want to. |
BindingResult.java | Interface | General interface that represents binding results. |
BindingResultUtils.java | Class | Convenience methods for looking up BindingResults in a model Map. |
DataBinder.java | Class | Binder that allows for setting property values onto a target object,
including support for validation and binding result analysis.
The binding process can be customized through specifying allowed fields,
required fields, custom editors, etc.
Note that there are potential security implications in failing to set an array
of allowed fields. |
DefaultBindingErrorProcessor.java | Class | Default BindingErrorProcessor implementation. |
DefaultMessageCodesResolver.java | Class | Default implementation of the
MessageCodesResolver interface.
Will create two message codes for an object error, in the following order:
- 1.: code + "." + object name
- 2.: code
Will create four message codes for a field specification, in the following order:
- 1.: code + "." + object name + "." + field
- 2.: code + "." + field
- 3.: code + "." + field type
- 4.: code
For example, in case of code "typeMismatch", object name "user", field "age":
|
DirectFieldBindingResult.java | Class | Special implementation of the Errors and BindingResult interfaces,
supporting registration and evaluation of binding errors on value objects. |
Errors.java | Interface | Stores and exposes information about data-binding and validation
errors for a specific object.
Field names can be properties of the target object (e.g. |
FieldError.java | Class | Encapsulates a field error, that is, a reason for rejecting a specific
field value. |
MapBindingResult.java | Class | Map-based implementation of the BindingResult interface,
supporting registration and evaluation of binding errors on
Map attributes. |
MessageCodesResolver.java | Interface | Strategy interface for building message codes from validation error codes. |
ObjectError.java | Class | Encapsulates an object error, that is, a global reason for rejecting
an object. |
ValidationUtils.java | Class | Utility class offering convenient methods for invoking a
Validator and for rejecting empty fields. |
Validator.java | Interface | A validator for application-specific objects.
This interface is totally divorced from any infrastructure
or context; that is to say it is not coupled to validating
only objects in the web tier, the data-access tier, or the
whatever-tier. |