Package grails.databinding
Interface DataBinder
-
public interface DataBinder- Since:
- 3.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_DATE_FORMAT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbind(java.lang.Object obj, DataBindingSource source)voidbind(java.lang.Object obj, DataBindingSource source, DataBindingListener listener)voidbind(java.lang.Object obj, DataBindingSource source, java.lang.String filter, java.util.List<java.lang.String> whiteList, java.util.List<java.lang.String> blackList)voidbind(java.lang.Object obj, DataBindingSource source, java.lang.String filter, java.util.List<java.lang.String> whiteList, java.util.List<java.lang.String> blackList, DataBindingListener listener)voidbind(java.lang.Object obj, DataBindingSource source, java.util.List<java.lang.String> whiteList)voidbind(java.lang.Object obj, DataBindingSource source, java.util.List<java.lang.String> whiteList, java.util.List<java.lang.String> blackList)voidbind(java.lang.Object obj, groovy.util.slurpersupport.GPathResult gpath)
-
-
-
Field Detail
-
DEFAULT_DATE_FORMAT
static final java.lang.String DEFAULT_DATE_FORMAT
- See Also:
- Constant Field Values
-
-
Method Detail
-
bind
void bind(java.lang.Object obj, DataBindingSource source, java.lang.String filter, java.util.List<java.lang.String> whiteList, java.util.List<java.lang.String> blackList, DataBindingListener listener)- Parameters:
obj- The object being bound tosource- The data binding sourcefilter- Only properties beginning with filter will be included in the data binding. For example, if filter is "person" and the binding source contains data for properties "person.name" and "author.name" the value of "person.name" will be bound to obj.name. The value of "author.name" will be ignored.whiteList- A list of property names to be included during this data binding. All other properties represented in the binding source will be ignoredblackList- A list of properties names to be excluded during this data binding.listener- A listener which will be notified of data binding events triggered by this binding- See Also:
DataBindingSource,DataBindingListener
-
bind
void bind(java.lang.Object obj, DataBindingSource source, java.lang.String filter, java.util.List<java.lang.String> whiteList, java.util.List<java.lang.String> blackList)- Parameters:
obj- The object being bound tosource- The data binding sourcefilter- Only properties beginning with filter will be included in the data binding. For example, if filter is "person" and the binding source contains data for properties "person.name" and "author.name" the value of "person.name" will be bound to obj.name. The value of "author.name" will be ignored.whiteList- A list of property names to be included during this data binding. All other properties represented in the binding source will be ignoredblackList- A list of properties names to be excluded during this data binding.- See Also:
DataBindingSource
-
bind
void bind(java.lang.Object obj, groovy.util.slurpersupport.GPathResult gpath)- Parameters:
obj- The object being bound togpath- A GPathResult which represents the data being bound.- See Also:
DataBindingSource
-
bind
void bind(java.lang.Object obj, DataBindingSource source, java.util.List<java.lang.String> whiteList, java.util.List<java.lang.String> blackList)- Parameters:
obj- The object being bound tosource- The data binding sourcewhiteList- A list of property names to be included during this data binding. All other properties represented in the binding source will be ignoredblackList- A list of properties names to be excluded during this data binding.- See Also:
DataBindingSource
-
bind
void bind(java.lang.Object obj, DataBindingSource source, java.util.List<java.lang.String> whiteList)- Parameters:
obj- The object being bound tosource- The data binding sourcewhiteList- A list of property names to be included during this data binding. All other properties represented in the binding source will be ignored- See Also:
DataBindingSource
-
bind
void bind(java.lang.Object obj, DataBindingSource source, DataBindingListener listener)- Parameters:
obj- The object being bound tosource- The data binding sourcelistener- A listener which will be notified of data binding events triggered by this binding- See Also:
DataBindingSource,DataBindingListener
-
bind
void bind(java.lang.Object obj, DataBindingSource source)- Parameters:
obj- The object being bound tosource- The data binding source- See Also:
DataBindingSource
-
-