org.springframework.validation
Class BeanPropertyBindingResult
java.lang.Object
   org.springframework.validation.AbstractErrors
org.springframework.validation.AbstractErrors
       org.springframework.validation.AbstractBindingResult
org.springframework.validation.AbstractBindingResult
           org.springframework.validation.AbstractPropertyBindingResult
org.springframework.validation.AbstractPropertyBindingResult
               org.springframework.validation.BeanPropertyBindingResult
org.springframework.validation.BeanPropertyBindingResult
- All Implemented Interfaces: 
- Serializable, BindingResult, Errors
- public class BeanPropertyBindingResult 
- extends AbstractPropertyBindingResult- implements Serializable
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
 DataBinder.getBindingResult().
- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
- DataBinder.getBindingResult(),- DataBinder.initBeanPropertyAccess(),- DirectFieldBindingResult, 
Serialized Form
 
 
 
 
 
 
| Methods inherited from class org.springframework.validation.AbstractBindingResult | 
| addAllErrors, addError, equals, findEditor, getAllErrors, getErrorCount, getFieldError, getFieldError, getFieldErrors, getFieldErrors, getFieldValue, getGlobalError, getGlobalErrors, getMessageCodesResolver, getModel, getObjectName, getRawFieldValue, getSuppressedFields, hasErrors, hashCode, recordSuppressedField, reject, rejectValue, resolveMessageCodes, resolveMessageCodes, setMessageCodesResolver | 
 
| Methods inherited from class org.springframework.validation.AbstractErrors | 
| doSetNestedPath, fixedField, getFieldErrorCount, getFieldErrorCount, getGlobalErrorCount, getNestedPath, hasFieldErrors, hasFieldErrors, hasGlobalErrors, isMatchingFieldError, popNestedPath, pushNestedPath, reject, reject, rejectValue, rejectValue, setNestedPath, toString | 
 
 
| Methods inherited from interface org.springframework.validation.Errors | 
| getFieldErrorCount, getFieldErrorCount, getGlobalErrorCount, getNestedPath, hasFieldErrors, hasFieldErrors, hasGlobalErrors, popNestedPath, pushNestedPath, reject, reject, rejectValue, rejectValue, setNestedPath | 
 
BeanPropertyBindingResult
public BeanPropertyBindingResult(Object target,
                                 String objectName)
- Creates a new instance of the BeanPropertyBindingResultclass.
 
- Parameters:
- target- the target bean to bind onto
- objectName- the name of the target object
 
getTarget
public final Object getTarget()
- Description copied from class: AbstractBindingResult
- Return the wrapped target object.
 
- 
- Specified by:
- getTargetin interface- BindingResult
- Specified by:
- getTargetin class- AbstractBindingResult
 
- 
 
getPropertyAccessor
public final ConfigurablePropertyAccessor getPropertyAccessor()
- Returns the BeanWrapperthat this instance uses.
 Creates a new one if none existed before.
 
- 
- Specified by:
- getPropertyAccessorin class- AbstractPropertyBindingResult
 
- 
- See Also:
- createBeanWrapper()
 
createBeanWrapper
protected BeanWrapper createBeanWrapper()
- Create a new BeanWrapperfor the underlying target object.
 
- 
 
- 
- See Also:
- getTarget()
 
Copyright © 2002-2008 The Spring Framework.