Package | Description |
---|---|
org.springframework.validation |
Provides data binding and validation functionality,
for usage in business and/or UI layers.
|
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.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractBindingResult
Abstract implementation of the
BindingResult interface and
its super-interface Errors . |
class |
AbstractPropertyBindingResult
Abstract base class for
BindingResult implementations that work with
Spring's PropertyAccessor mechanism. |
class |
BeanPropertyBindingResult
Default implementation of the
Errors and BindingResult
interfaces, for the registration and evaluation of binding errors on
JavaBean objects. |
class |
BindException
Thrown when binding errors are considered fatal.
|
class |
DirectFieldBindingResult
Special implementation of the Errors and BindingResult interfaces,
supporting registration and evaluation of binding errors on value objects.
|
class |
MapBindingResult
Map-based implementation of the BindingResult interface,
supporting registration and evaluation of binding errors on
Map attributes.
|
Modifier and Type | Method and Description |
---|---|
BindingResult |
DataBinder.getBindingResult()
Return the BindingResult instance created by this DataBinder.
|
BindingResult |
BindException.getBindingResult()
Return the BindingResult that this BindException wraps.
|
static BindingResult |
BindingResultUtils.getBindingResult(java.util.Map<?,?> model,
java.lang.String name)
Find the BindingResult for the given name in the given model.
|
static BindingResult |
BindingResultUtils.getRequiredBindingResult(java.util.Map<?,?> model,
java.lang.String name)
Find a required BindingResult for the given name in the given model.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultBindingErrorProcessor.processMissingFieldError(java.lang.String missingField,
BindingResult bindingResult) |
void |
BindingErrorProcessor.processMissingFieldError(java.lang.String missingField,
BindingResult bindingResult)
Apply the missing field error to the given BindException.
|
void |
DefaultBindingErrorProcessor.processPropertyAccessException(org.springframework.beans.PropertyAccessException ex,
BindingResult bindingResult) |
void |
BindingErrorProcessor.processPropertyAccessException(org.springframework.beans.PropertyAccessException ex,
BindingResult bindingResult)
Translate the given
PropertyAccessException to an appropriate
error registered on the given Errors instance. |
Constructor and Description |
---|
BindException(BindingResult bindingResult)
Create a new BindException instance for a BindingResult.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
SpringValidatorAdapter.getRejectedValue(java.lang.String field,
ConstraintViolation<java.lang.Object> violation,
BindingResult bindingResult)
Extract the rejected value behind the given constraint violation,
for exposure through the Spring errors representation.
|