Class BeanPropertyBindingResult
java.lang.Object
org.springframework.validation.AbstractErrors
org.springframework.validation.AbstractBindingResult
org.springframework.validation.AbstractPropertyBindingResult
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:
- 
Field SummaryFields inherited from interface org.springframework.validation.BindingResultMODEL_KEY_PREFIXFields inherited from interface org.springframework.validation.ErrorsNESTED_PATH_SEPARATOR
- 
Constructor SummaryConstructorsConstructorDescriptionBeanPropertyBindingResult(@Nullable Object target, String objectName) Create a newBeanPropertyBindingResultfor the given target.BeanPropertyBindingResult(@Nullable Object target, String objectName, boolean autoGrowNestedPaths, int autoGrowCollectionLimit) Create a newBeanPropertyBindingResultfor the given target.
- 
Method SummaryModifier and TypeMethodDescriptionprotected BeanWrapperCreate a newBeanWrapperfor the underlying target object.Returns theBeanWrapperthat this instance uses.Return the wrapped target object.Methods inherited from class org.springframework.validation.AbstractPropertyBindingResultcanonicalFieldName, findEditor, formatFieldValue, getActualFieldValue, getCustomEditor, getFieldType, getPropertyEditorRegistry, initConversionMethods inherited from class org.springframework.validation.AbstractBindingResultaddAllErrors, addError, equals, getAllErrors, getErrorCount, getFieldError, getFieldError, getFieldErrors, getFieldErrors, getFieldValue, getGlobalError, getGlobalErrors, getMessageCodesResolver, getModel, getObjectName, getRawFieldValue, getSuppressedFields, hasErrors, hashCode, recordFieldValue, recordSuppressedField, reject, rejectValue, resolveMessageCodes, resolveMessageCodes, setMessageCodesResolverMethods inherited from class org.springframework.validation.AbstractErrorsdoSetNestedPath, fixedField, getNestedPath, isMatchingFieldError, popNestedPath, pushNestedPath, setNestedPath, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.validation.ErrorsfailOnError, getFieldErrorCount, getFieldErrorCount, getGlobalErrorCount, getNestedPath, hasFieldErrors, hasFieldErrors, hasGlobalErrors, popNestedPath, pushNestedPath, reject, reject, rejectValue, rejectValue, setNestedPath, toString
- 
Constructor Details- 
BeanPropertyBindingResult
- 
BeanPropertyBindingResultpublic BeanPropertyBindingResult(@Nullable Object target, String objectName, boolean autoGrowNestedPaths, int autoGrowCollectionLimit) Create a newBeanPropertyBindingResultfor the given target.- 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
- autoGrowCollectionLimit- the limit for array and collection auto-growing
 
 
- 
- 
Method Details- 
getTargetDescription copied from class:AbstractBindingResultReturn the wrapped target object.- Specified by:
- getTargetin interface- BindingResult
- Specified by:
- getTargetin class- AbstractBindingResult
 
- 
getPropertyAccessorReturns theBeanWrapperthat this instance uses. Creates a new one if none existed before.- Specified by:
- getPropertyAccessorin class- AbstractPropertyBindingResult
- See Also:
 
- 
createBeanWrapperCreate a newBeanWrapperfor the underlying target object.- See Also:
 
 
-