@CompileStatic class GrailsWebDataBinder extends SimpleDataBinder
Modifiers | Name | Description |
---|---|---|
class |
GrailsWebDataBinder.1 |
Modifiers | Name | Description |
---|---|---|
protected GrailsApplication |
grailsApplication |
|
protected List<DataBindingListener> |
listeners |
|
protected MessageSource |
messageSource |
Fields inherited from class | Fields |
---|---|
class SimpleDataBinder |
BASIC_TYPES, conversionHelpers, formattedValueConversionHelpers, structuredEditors |
Type | Name and description |
---|---|
boolean |
convertEmptyStringsToNull |
boolean |
trimStrings |
Properties inherited from class | Properties |
---|---|
class SimpleDataBinder |
INDEXED_PROPERTY_REGEX, autoGrowCollectionLimit, conversionService |
Constructor and description |
---|
GrailsWebDataBinder(GrailsApplication grailsApplication) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected boolean |
addElementToCollection(Object obj, String propName, Class propertyType, Object propertyValue, boolean clearCollection) |
|
protected boolean |
addElementToCollection(Object obj, String propName, PersistentProperty property, Object propertyValue, boolean clearCollection) |
|
protected void |
addElementToCollectionAt(Object obj, String propertyName, Collection collection, int index, Object val) |
|
void |
bind(Object obj, DataBindingSource source) |
|
void |
bind(Object obj, DataBindingSource source, DataBindingListener listener) |
|
void |
bind(Object object, DataBindingSource source, String filter, List whiteList, List blackList, DataBindingListener listener) |
|
void |
bind(Object obj, GPathResult gpath) |
|
protected Object |
convert(Class typeToConvertTo, Object value) |
|
protected void |
doBind(Object object, DataBindingSource source, String filter, List whiteList, List blackList, DataBindingListener listener, Object errors) |
|
protected Class |
getDomainClassType(Object obj, String propName)
|
|
protected String |
getFormatString(Annotation annotation) |
|
protected Object |
getIdentifierValueFrom(Object source) |
|
protected Locale |
getLocale() |
|
protected Object |
getPersistentInstance(Class<?> type, Object id) |
|
protected Class<?> |
getReferencedTypeForCollection(String name, Object target) |
|
protected void |
initializeProperty(Object obj, String propName, Class propertyType, DataBindingSource source) |
|
protected boolean |
isDomainClass(Class<?> clazz) |
|
protected void |
populateErrors(Object obj, org.springframework.validation.BindingResult bindingResult) |
|
protected Object |
preprocessValue(Object propertyValue) |
|
protected void |
processIndexedProperty(Object obj, MetaProperty metaProperty, IndexedPropertyReferenceDescriptor indexedPropertyReferenceDescriptor, Object val, DataBindingSource source, DataBindingListener listener, Object errors) |
|
protected void |
processProperty(Object obj, MetaProperty metaProperty, Object val, DataBindingSource source, DataBindingListener listener, Object errors) |
|
void |
setDataBindingListeners(DataBindingListener[] listeners) |
|
void |
setFormattedValueConverters(FormattedValueConverter[] converters) |
|
void |
setMessageSource(MessageSource messageSource) |
|
protected void |
setPropertyValue(Object obj, DataBindingSource source, MetaProperty metaProperty, Object propertyValue, DataBindingListener listener) |
|
void |
setStructuredBindingEditors(TypedStructuredBindingEditor[] editors) |
|
void |
setValueConverters(ValueConverter[] converters) |
obj
- any objectpropName
- the name of a property on obj