package uk.ac.ebi.spot.goci.service;

import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import uk.ac.ebi.spot.goci.model.AssociationUploadRow;

import java.util.Collection;
import java.util.Map;

/**
 * Created by emma on 13/04/2016.
 *
 * @author emma
 *         <p>
 *         Service to read an spreadsheet of associations, create a map of headers in the file and process all further
 *         rows
 */
public interface UploadSheetProcessor {

    /**
     * Create a map of each header so as we read the file we can determine which value is being read
     *
     * @param row XLSX row created from a file supplied by user
     */
    Map<Integer, String> createHeaderMap(XSSFRow row);

    /**
     * Create a map of each header so as we read the file we can determine which value is being read
     *
     * @param sheet Sheet created from a file supplied by user
     */
    Collection<AssociationUploadRow> readSheetRows(XSSFSheet sheet);
}
@@ -179,16 +179,67 @@
 loadRow;
+%0Aimport uk.ac.ebi.spot.goci.utils.UploadFileHeader;
 %0A%0Aimport
@@ -745,14 +745,24 @@
 er, 
-String
+UploadFileHeader
 %3E cr

Update to return type