@groovy.transform.CompileStatic abstract class AbstractStructuredBindingEditor<T> extends java.lang.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 |
---|---|
java.lang.Class<T> |
targetType |
Constructor and description |
---|
AbstractStructuredBindingEditor
() |
Type Params | Return Type | Name and description |
---|---|---|
|
T |
getPropertyValue(java.lang.Object obj, java.lang.String propertyName, DataBindingSource bindingSource) |
|
abstract T |
getPropertyValue(java.util.Map values) |
|
java.util.Map<java.lang.String, java.lang.Object> |
getPropertyValuesMap(java.lang.String propertyPrefix, DataBindingSource bindingSource) A convenience method for extracting structured values from a DataBindingSource. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
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 fromGroovy Documentation