All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.uniroma2.art.sheet2rdf.sheet.SheetManager Maven / Gradle / Ivy

There is a newer version: 6.0.6
Show newest version
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();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy