public class BeanPropertyBindingResult extends AbstractPropertyBindingResult implements Serializable
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,
序列化表格MODEL_KEY_PREFIXNESTED_PATH_SEPARATOR| 构造器和说明 |
|---|
BeanPropertyBindingResult(Object target,
String objectName)
Creates a new instance of the
BeanPropertyBindingResult class. |
BeanPropertyBindingResult(Object target,
String objectName,
boolean autoGrowNestedPaths,
int autoGrowCollectionLimit)
Creates a new instance of the
BeanPropertyBindingResult class. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.springframework.beans.BeanWrapper |
createBeanWrapper()
Create a new
BeanWrapper for the underlying target object. |
org.springframework.beans.ConfigurablePropertyAccessor |
getPropertyAccessor()
Returns the
BeanWrapper that this instance uses. |
Object |
getTarget()
Return the wrapped target object.
|
canonicalFieldName, findEditor, formatFieldValue, getActualFieldValue, getCustomEditor, getFieldType, getPropertyEditorRegistry, initConversionaddAllErrors, addError, equals, getAllErrors, getErrorCount, getFieldError, getFieldError, getFieldErrors, getFieldErrors, getFieldValue, getGlobalError, getGlobalErrors, getMessageCodesResolver, getModel, getObjectName, getRawFieldValue, getSuppressedFields, hasErrors, hashCode, recordFieldValue, recordSuppressedField, reject, rejectValue, resolveMessageCodes, resolveMessageCodes, setMessageCodesResolverdoSetNestedPath, fixedField, getFieldErrorCount, getFieldErrorCount, getGlobalErrorCount, getNestedPath, hasFieldErrors, hasFieldErrors, hasGlobalErrors, isMatchingFieldError, popNestedPath, pushNestedPath, reject, reject, rejectValue, rejectValue, setNestedPath, toStringgetFieldErrorCount, getFieldErrorCount, getGlobalErrorCount, getNestedPath, hasFieldErrors, hasFieldErrors, hasGlobalErrors, popNestedPath, pushNestedPath, reject, reject, rejectValue, rejectValue, setNestedPathpublic BeanPropertyBindingResult(@Nullable
Object target,
String objectName)
BeanPropertyBindingResult class.target - the target bean to bind ontoobjectName - the name of the target objectpublic BeanPropertyBindingResult(@Nullable
Object target,
String objectName,
boolean autoGrowNestedPaths,
int autoGrowCollectionLimit)
BeanPropertyBindingResult class.target - the target bean to bind ontoobjectName - the name of the target objectautoGrowNestedPaths - whether to "auto-grow" a nested path that contains a null valueautoGrowCollectionLimit - the limit for array and collection auto-growing@Nullable public final Object getTarget()
AbstractBindingResultgetTarget 在接口中 BindingResultgetTarget 在类中 AbstractBindingResultpublic final org.springframework.beans.ConfigurablePropertyAccessor getPropertyAccessor()
BeanWrapper that this instance uses.
Creates a new one if none existed before.getPropertyAccessor 在类中 AbstractPropertyBindingResultcreateBeanWrapper()protected org.springframework.beans.BeanWrapper createBeanWrapper()
BeanWrapper for the underlying target object.getTarget()