类 MapBindingResult
java.lang.Object
cn.taketoday.validation.AbstractErrors
cn.taketoday.validation.AbstractBindingResult
cn.taketoday.validation.MapBindingResult
- 所有已实现的接口:
BindingResult,Errors,Serializable
Map-based implementation of the BindingResult interface,
supporting registration and evaluation of binding errors on
Map attributes.
Can be used as errors holder for custom binding onto a Map, for example when invoking a Validator for a Map object.
-
字段概要
从接口继承的字段 cn.taketoday.validation.BindingResult
MODEL_KEY_PREFIX从接口继承的字段 cn.taketoday.validation.Errors
NESTED_PATH_SEPARATOR -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected ObjectgetActualFieldValue(String field) Extract the actual field value for the given field.final ObjectReturn the wrapped target object.final Map<?,?> Return the target Map to bind onto.从类继承的方法 cn.taketoday.validation.AbstractBindingResult
addAllErrors, addError, equals, findEditor, formatFieldValue, getAllErrors, getErrorCount, getFieldError, getFieldError, getFieldErrors, getFieldErrors, getFieldType, getFieldValue, getGlobalError, getGlobalErrors, getMessageCodesResolver, getModel, getObjectName, getPropertyEditorRegistry, getRawFieldValue, getSuppressedFields, hasErrors, hashCode, recordFieldValue, recordSuppressedField, reject, rejectValue, resolveMessageCodes, resolveMessageCodes, setMessageCodesResolver从类继承的方法 cn.taketoday.validation.AbstractErrors
canonicalFieldName, 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
-
构造器详细资料
-
MapBindingResult
Create a new MapBindingResult instance.- 参数:
target- the target Map to bind ontoobjectName- the name of the target object
-
-
方法详细资料
-
getTargetMap
Return the target Map to bind onto. -
getTarget
从类复制的说明:AbstractBindingResultReturn the wrapped target object.- 指定者:
getTarget在接口中BindingResult- 指定者:
getTarget在类中AbstractBindingResult
-
getActualFieldValue
从类复制的说明:AbstractBindingResultExtract the actual field value for the given field.- 指定者:
getActualFieldValue在类中AbstractBindingResult- 参数:
field- the field to check- 返回:
- the current value of the field
-