Class CSVBinder

java.lang.Object
com.axelor.data.csv.CSVBinder

public class CSVBinder extends Object
  • Constructor Details

  • Method Details

    • registerAdapter

      public void registerAdapter(DataAdapter adapter)
    • registerAdapters

      public void registerAdapters(Map<String,DataAdapter> map)
    • getFields

      public String[] getFields()
    • callSearch

      public <T> T callSearch(Map<String,Object> context)
    • bind

      public 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.

      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.

      Parameters:
      values - values from csv row
      localContext - copy of global context, the method updates it with the binding values
      Returns:
      a bean instance of the class on which binding is performed