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