public class RelaxedDataBinder
extends org.springframework.validation.DataBinder
RelaxedNames
Constructor and Description |
---|
RelaxedDataBinder(Object target)
Create a new
RelaxedDataBinder instance. |
RelaxedDataBinder(Object target,
String namePrefix)
Create a new
RelaxedDataBinder instance. |
Modifier and Type | Method and Description |
---|---|
protected void |
doBind(org.springframework.beans.MutablePropertyValues propertyValues) |
protected String |
normalizePath(org.springframework.beans.BeanWrapper wrapper,
String path)
Normalize a bean property path to a format understood by a BeanWrapper.
|
void |
setIgnoreNestedProperties(boolean ignoreNestedProperties)
Flag to disable binding of nested properties (i.e.
|
addValidators, applyPropertyValues, bind, checkAllowedFields, checkRequiredFields, close, convertIfNecessary, convertIfNecessary, convertIfNecessary, findCustomEditor, getAllowedFields, getAutoGrowCollectionLimit, getBindingErrorProcessor, getBindingResult, getConversionService, getDisallowedFields, getInternalBindingResult, getObjectName, getPropertyAccessor, getPropertyEditorRegistry, getRequiredFields, getSimpleTypeConverter, getTarget, getTypeConverter, getValidator, getValidators, initBeanPropertyAccess, initDirectFieldAccess, isAllowed, isAutoGrowNestedPaths, isIgnoreInvalidFields, isIgnoreUnknownFields, registerCustomEditor, registerCustomEditor, replaceValidators, setAllowedFields, setAutoGrowCollectionLimit, setAutoGrowNestedPaths, setBindingErrorProcessor, setConversionService, setDisallowedFields, setExtractOldValueForEditor, setIgnoreInvalidFields, setIgnoreUnknownFields, setMessageCodesResolver, setRequiredFields, setValidator, validate, validate
public RelaxedDataBinder(Object target)
RelaxedDataBinder
instance.target
- the target into which properties are boundpublic RelaxedDataBinder(Object target, String namePrefix)
RelaxedDataBinder
instance.target
- the target into which properties are boundnamePrefix
- An optional prefix to be used when reading propertiespublic void setIgnoreNestedProperties(boolean ignoreNestedProperties)
ignoreNestedProperties
- the flag to set (default false)protected void doBind(org.springframework.beans.MutablePropertyValues propertyValues)
doBind
in class org.springframework.validation.DataBinder
protected String normalizePath(org.springframework.beans.BeanWrapper wrapper, String path)
wrapper
- a bean wrapper for the object to bindpath
- the bean path to bindCopyright © 2014 Pivotal Software, Inc.. All rights reserved.