|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.validation.DataBinder
org.springframework.boot.bind.RelaxedDataBinder
public class RelaxedDataBinder
Binder implementation that allows caller to bind to maps and also allows property names to match a bit loosely (if underscores or dashes are removed and replaced with camel case for example).
RelaxedNames| Field Summary |
|---|
| Fields inherited from class org.springframework.validation.DataBinder |
|---|
DEFAULT_AUTO_GROW_COLLECTION_LIMIT, DEFAULT_OBJECT_NAME, logger |
| Constructor Summary | |
|---|---|
RelaxedDataBinder(Object target)
|
|
RelaxedDataBinder(Object target,
String namePrefix)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.springframework.validation.DataBinder |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RelaxedDataBinder(Object target)
target - the target into which properties are bound
public RelaxedDataBinder(Object target,
String namePrefix)
target - the target into which properties are boundnamePrefix - An optional prefix to be used when reading properties| Method Detail |
|---|
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 bind
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||