public class CSVBinder extends Object
Constructor and Description |
---|
CSVBinder(Class<?> beanClass,
String[] fields,
CSVBind csvBind) |
CSVBinder(Class<?> beanClass,
String[] fields,
CSVInput csvInput) |
Modifier and Type | Method and Description |
---|---|
Object |
bind(String[] values,
Map<String,Object> localContext)
Get a bean instance with the given set of
values binding to
the instance according to the binding rules. |
String[] |
getFields() |
void |
registerAdapter(DataAdapter adapter) |
public void registerAdapter(DataAdapter adapter)
public String[] getFields()
public Object bind(String[] values, Map<String,Object> localContext)
values
binding to
the instance according to the binding rules.
The localContext
is a copy of the global context created
with prepare-context
method. The localContext
is updated with the current binding values and is available to the
call
method as context.
values
- values from csv rowlocalContext
- copy of global context, the method updates it with the binding
values