
package de.ivu.elect.exchange;

import java.util.ArrayList;
import java.util.List;

import de.ivu.elect.jee.presentation.dynamictable.ColumnModel;

public interface CsvImportMapper<T, C> extends ImportMapper<T, C> {

  default List<String> getCsvColumnHeaders(C context, List<String> headerInDatei) {
    return getCsvColumnHeaders(context);
  }

  List<String> getCsvColumnHeaders(C context);

  default List<ColumnModel> sortCsvColumnsAndSetStyleClass(C context, List<ColumnModel> columnModels) {
    return columnModels;
  }

  default List<ColumnModel> getMissingColumnsFrom(C context, List<ColumnModel> columnModels) {
    return new ArrayList<>();
  }
}
