@CompileStatic abstract class AbstractStructuredBindingEditor<T> extends Object implements TypedStructuredBindingEditor<T>
An abstract base class for StructuredBindingEditor instances which can be auto-discovered as beans in the Spring application context
| Type | Name and description |
|---|---|
Class<T> |
targetType |
| Constructor and description |
|---|
AbstractStructuredBindingEditor() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
T |
getPropertyValue(Object obj, String propertyName, DataBindingSource bindingSource) |
|
abstract T |
getPropertyValue(Map values) |
|
Map<String, Object> |
getPropertyValuesMap(String propertyPrefix, DataBindingSource bindingSource)A convenience method for extracting structured values from a DataBindingSource. |
A convenience method for extracting structured values from a DataBindingSource. The method will look for all properties in bindingSource which have a key which begins with propertyPrefix followed by an underscore and put each of those values in the resulting Map with a key that matches the original key with the propertyName plus prefix removed. For example, if propertyPrefix is "address" and bindingSource contains the key "address_city" with a value of "St. Louis" then the resulting Map will contain an entry such that the key is "city" with a value of "St. Louis"
propertyPrefix - The property name to extract structured values forbindingSource - the DataBindingSource to extract structured values from