it.uniroma2.art.sheet2rdf.sheet.SheetManager Maven / Gradle / Ivy
package it.uniroma2.art.sheet2rdf.sheet;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public interface SheetManager {
/**
* Returns a list of the headers of the excel data sheet
* @param includeDuplicate the returned list contains eventual multiple headers
* @return
*/
public List getHeaders(boolean includeDuplicate);
/**
* Return a table containing all the value in the datasheet (except the headers).
* @return
*/
public ArrayList> getDataTable();
/**
* Return the string value of the cell in a specified row and column
* @param row
* @param column
* @return
*/
public String getCellValueInDataSheet(int row, int column);
/**
* Returns the prefix-namespace map contained in the prefix_mapping sheet of the excel file. If the excel
* file has no prefix_mapping sheet, an empty map will be return.
* @return
*/
public Map getPrefixNamespaceMapping();
/**
* Checks if in headers row there are more consecutive cell with the same value (headerValue)
*
* @param headerRow
* @param idx
* @param headerValue
* @return
*/
public boolean isMultipleHeader(String headerValue);
/**
* True if excel file contains prefix_mapping sheet, false otherwise
* @return
*/
public boolean existsPrefixMappingSheet();
/**
* Returns number of columns of the datasheet
* @param sheet
* @return
*/
public int getDataSheetColumnCount();
/**
* Returns number of rows of the data sheet
* @param sheet
* @return
*/
public int getDataSheetRowCount();
/**
* Returns number of columns of the prefix_mapping sheet
* @param sheet
* @return
*/
public int getPrefixSheetColumnCount();
/**
* Returns number of rows of the prefix_mapping sheet
* @param sheet
* @return
*/
public int getPrefixSheetRowCount();
}