Errors and BindingResult
interfaces, for the registration and evaluation of binding errors on
JavaBean objects.
Performs standard JavaBean property access, also supporting nested
properties. Normally, application code will work with the
Errors interface or the BindingResult interface.
A DataBinder returns its BindingResult via
DataBinder#getBindingResult().
DataBinder#getBindingResult(), DataBinder#initBeanPropertyAccess(), DirectFieldBindingResult
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final boolean | |
| private transient BeanWrapper | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public | BeanPropertyBindingResult(Object
the target bean to bind onto target, String the name of the target object objectName)Create a new |
| public | BeanPropertyBindingResult(Object
the target bean to bind onto target, String the name of the target object objectName, boolean whether to "auto-grow" a nested path that contains a null value autoGrowNestedPaths, int the limit for array and collection auto-growing autoGrowCollectionLimit)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| protected BeanWrapper | |
| public final ConfigurablePropertyAccessor | getPropertyAccessor()
Implements abstract org. Returns the |
| public final Object | getTarget()
Implements abstract org. Implements org. Return the wrapped target object. |
| autoGrowCollectionLimit | back to summary |
|---|---|
| private final int autoGrowCollectionLimit | |
| autoGrowNestedPaths | back to summary |
|---|---|
| private final boolean autoGrowNestedPaths | |
| beanWrapper | back to summary |
|---|---|
| private transient BeanWrapper beanWrapper
| |
| target | back to summary |
|---|---|
| private final Object target
| |
| BeanPropertyBindingResult | back to summary |
|---|---|
| public BeanPropertyBindingResult(Object target, String objectName) Create a new | |
| BeanPropertyBindingResult | back to summary |
|---|---|
| public BeanPropertyBindingResult(Object target, String objectName, boolean autoGrowNestedPaths, int autoGrowCollectionLimit) Create a new | |
| createBeanWrapper | back to summary |
|---|---|
| protected BeanWrapper createBeanWrapper() Create a new
| |
| getPropertyAccessor | back to summary |
|---|---|
| public final ConfigurablePropertyAccessor getPropertyAccessor() Implements abstract org. Returns the
| |
| getTarget | back to summary |
|---|---|
| public final Object getTarget() Implements abstract org. Implements org. Doc from org. Return the wrapped target object. | |