public class

BeanPropertyBindingResult

extends AbstractPropertyBindingResult
implements Serializable
java.lang.Object
   ↳ org.springframework.validation.AbstractErrors
     ↳ org.springframework.validation.AbstractBindingResult
       ↳ org.springframework.validation.AbstractPropertyBindingResult
         ↳ org.springframework.validation.BeanPropertyBindingResult

Class Overview

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. Normally, application code will work with the Errors interface or the BindingResult interface. A DataBinder returns its BindingResult via getBindingResult().

Summary

[Expand]
Inherited Constants
From interface org.springframework.validation.Errors
[Expand]
Inherited Fields
From interface org.springframework.validation.BindingResult
Public Constructors
BeanPropertyBindingResult(Object target, String objectName)
Creates a new instance of the BeanPropertyBindingResult class.
BeanPropertyBindingResult(Object target, String objectName, boolean autoGrowNestedPaths)
Creates a new instance of the BeanPropertyBindingResult class.
Public Methods
final ConfigurablePropertyAccessor getPropertyAccessor()
Returns the BeanWrapper that this instance uses.
final Object getTarget()
Return the wrapped target object.
Protected Methods
BeanWrapper createBeanWrapper()
Create a new BeanWrapper for the underlying target object.
[Expand]
Inherited Methods
From class org.springframework.validation.AbstractPropertyBindingResult
From class org.springframework.validation.AbstractBindingResult
From class org.springframework.validation.AbstractErrors
From class java.lang.Object
From interface org.springframework.validation.BindingResult
From interface org.springframework.validation.Errors

Public Constructors

public BeanPropertyBindingResult (Object target, String objectName)

Creates a new instance of the BeanPropertyBindingResult class.

Parameters
target the target bean to bind onto
objectName the name of the target object

public BeanPropertyBindingResult (Object target, String objectName, boolean autoGrowNestedPaths)

Creates a new instance of the BeanPropertyBindingResult class.

Parameters
target the target bean to bind onto
objectName the name of the target object
autoGrowNestedPaths whether to "auto-grow" a nested path that contains a null value

Public Methods

public final ConfigurablePropertyAccessor getPropertyAccessor ()

Returns the BeanWrapper that this instance uses. Creates a new one if none existed before.

public final Object getTarget ()

Return the wrapped target object.

Protected Methods

protected BeanWrapper createBeanWrapper ()

Create a new BeanWrapper for the underlying target object.

See Also