Package com.axelor.data.csv
Class CSVBinder
- java.lang.Object
-
- com.axelor.data.csv.CSVBinder
-
public class CSVBinder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectbind(String[] values, Map<String,Object> localContext)Get a bean instance with the given set ofvaluesbinding to the instance according to the binding rules.<T> TcallSearch(Map<String,Object> context)String[]getFields()voidregisterAdapter(DataAdapter adapter)voidregisterAdapters(Map<String,DataAdapter> map)
-
-
-
Method Detail
-
registerAdapter
public void registerAdapter(DataAdapter adapter)
-
registerAdapters
public void registerAdapters(Map<String,DataAdapter> map)
-
getFields
public String[] getFields()
-
bind
public Object bind(String[] values, Map<String,Object> localContext)
Get a bean instance with the given set ofvaluesbinding to the instance according to the binding rules.
The
localContextis a copy of the global context created withprepare-contextmethod. ThelocalContextis updated with the current binding values and is available to thecallmethod as context.- Parameters:
values- values from csv rowlocalContext- copy of global context, the method updates it with the binding values- Returns:
- a bean instance of the class on which binding is performed
-
-