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

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

The newest version!
package it.uniroma2.art.sheet2rdf.sheet;

import it.uniroma2.art.sheet2rdf.exception.GenericSheet2RDFException;

import java.util.List;

public class S2RDFSheet {

    private final String name;
    private final List headers;
    private final List> tableContent;

    public S2RDFSheet(SheetManager sheetManager) throws GenericSheet2RDFException {
        this.name = sheetManager.getSheetName();
        this.headers = sheetManager.getHeaders(true);
        this.tableContent = sheetManager.getDataTable();
    }

    public String getName() {
        return name;
    }

    public List getHeaders() {
        return headers;
    }

    public List> getTableContent() {
        return tableContent;
    }

    public String getCellValue(int row, int col) {
        return this.tableContent.get(row).get(col);
    }

    public int getRowCount() {
        return this.tableContent.size();
    }

    public int getColumnCount() {
        return this.headers.size();
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy