public class MapBindingResult extends AbstractBindingResult implements Serializable
Can be used as errors holder for custom binding onto a Map, for example when invoking a Validator for a Map object.
Map,
Serialized FormMODEL_KEY_PREFIXNESTED_PATH_SEPARATOR| Constructor and Description |
|---|
MapBindingResult(Map<?,?> target,
String objectName)
Create a new MapBindingResult instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
getActualFieldValue(String field)
Extract the actual field value for the given field.
|
Object |
getTarget()
Return the wrapped target object.
|
Map<?,?> |
getTargetMap() |
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, setMessageCodesResolvercanonicalFieldName, doSetNestedPath, fixedField, getFieldErrorCount, getFieldErrorCount, getGlobalErrorCount, getNestedPath, hasFieldErrors, hasFieldErrors, hasGlobalErrors, isMatchingFieldError, popNestedPath, pushNestedPath, reject, reject, rejectValue, rejectValue, setNestedPath, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFieldErrorCount, getFieldErrorCount, getGlobalErrorCount, getNestedPath, hasFieldErrors, hasFieldErrors, hasGlobalErrors, popNestedPath, pushNestedPath, reject, reject, rejectValue, rejectValue, setNestedPathpublic final Map<?,?> getTargetMap()
public final Object getTarget()
AbstractBindingResultgetTarget in interface BindingResultgetTarget in class AbstractBindingResult@Nullable protected Object getActualFieldValue(String field)
AbstractBindingResultgetActualFieldValue in class AbstractBindingResultfield - the field to check