类 BeanPropertyBindingResult
java.lang.Object
cn.taketoday.validation.AbstractErrors
cn.taketoday.validation.AbstractBindingResult
cn.taketoday.validation.AbstractPropertyBindingResult
cn.taketoday.validation.BeanPropertyBindingResult
- 所有已实现的接口:
BindingResult,Errors,Serializable
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().
- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller
- 另请参阅:
-
字段概要
从接口继承的字段 cn.taketoday.validation.BindingResult
MODEL_KEY_PREFIX从接口继承的字段 cn.taketoday.validation.Errors
NESTED_PATH_SEPARATOR -
构造器概要
构造器构造器说明BeanPropertyBindingResult(Object target, String objectName) Creates a new instance of theBeanPropertyBindingResultclass.BeanPropertyBindingResult(Object target, String objectName, boolean autoGrowNestedPaths, int autoGrowCollectionLimit) Creates a new instance of theBeanPropertyBindingResultclass. -
方法概要
修饰符和类型方法说明protected BeanWrapperCreate a newBeanWrapperfor the underlying target object.Returns theBeanWrapperthat this instance uses.final ObjectReturn the wrapped target object.从类继承的方法 cn.taketoday.validation.AbstractPropertyBindingResult
canonicalFieldName, findEditor, formatFieldValue, getActualFieldValue, getCustomEditor, getFieldType, getPropertyEditorRegistry, initConversion从类继承的方法 cn.taketoday.validation.AbstractBindingResult
addAllErrors, addError, equals, getAllErrors, getErrorCount, getFieldError, getFieldError, getFieldErrors, getFieldErrors, getFieldValue, getGlobalError, getGlobalErrors, getMessageCodesResolver, getModel, getObjectName, getRawFieldValue, getSuppressedFields, hasErrors, hashCode, recordFieldValue, recordSuppressedField, reject, rejectValue, resolveMessageCodes, resolveMessageCodes, setMessageCodesResolver从类继承的方法 cn.taketoday.validation.AbstractErrors
doSetNestedPath, fixedField, getFieldErrorCount, getFieldErrorCount, getGlobalErrorCount, getNestedPath, hasFieldErrors, hasFieldErrors, hasGlobalErrors, isMatchingFieldError, popNestedPath, pushNestedPath, reject, reject, rejectValue, rejectValue, setNestedPath, toString从接口继承的方法 cn.taketoday.validation.Errors
getFieldErrorCount, getFieldErrorCount, getGlobalErrorCount, getNestedPath, hasFieldErrors, hasFieldErrors, hasGlobalErrors, popNestedPath, pushNestedPath, reject, reject, rejectValue, rejectValue, setNestedPath
-
构造器详细资料
-
BeanPropertyBindingResult
Creates a new instance of theBeanPropertyBindingResultclass.- 参数:
target- the target bean to bind ontoobjectName- the name of the target object
-
BeanPropertyBindingResult
public BeanPropertyBindingResult(@Nullable Object target, String objectName, boolean autoGrowNestedPaths, int autoGrowCollectionLimit) Creates a new instance of theBeanPropertyBindingResultclass.- 参数:
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
-
-
方法详细资料
-
getTarget
从类复制的说明:AbstractBindingResultReturn the wrapped target object.- 指定者:
getTarget在接口中BindingResult- 指定者:
getTarget在类中AbstractBindingResult
-
getPropertyAccessor
Returns theBeanWrapperthat this instance uses. Creates a new one if none existed before.- 指定者:
getPropertyAccessor在类中AbstractPropertyBindingResult- 另请参阅:
-
createBeanWrapper
Create a newBeanWrapperfor the underlying target object.- 另请参阅:
-