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

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

import java.util.Collection;

/**
 * Created by emma on 13/04/2016.
 *
 * @author emma
 *         <p>
 *         Service to read an spreadsheet of associations
 */
public interface UploadSheetProcessor {
    Collection<AssociationUploadRow> readSheetRows(XSSFSheet sheet);
}

@@ -31,16 +31,62 @@
 rvice;%0A%0A
+import org.apache.poi.xssf.usermodel.XSSFRow;%0A
 import o
@@ -209,16 +209,38 @@
 lection;
+%0Aimport java.util.Map;
 %0A%0A/**%0A *
@@ -366,52 +366,186 @@
 ions
-%0A */%0Apublic interface UploadSheetProcessor %7B
+, create a map of headers in the file and process all further%0A *         rows%0A */%0Apublic interface UploadSheetProcessor %7B%0A%0A    Map%3CInteger, String%3E createHeaderMap(XSSFRow row);%0A
 %0A   
@@ -611,9 +611,8 @@
 heet);%0A%7D
-%0A

Add method to process headers