Class CSVFile

  • All Implemented Interfaces:
    Serializable

    public class CSVFile
    extends Object
    implements Serializable
    The Class CSVFile.
    Author:
    Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Jan 29, 2019
    See Also:
    Serialized Form
    • Constructor Detail

      • CSVFile

        public CSVFile()
        Instantiates a new CSV file.
      • CSVFile

        public CSVFile​(String fileName,
                       CSVRow headerRow,
                       List<CSVRow> valueRows)
        Instantiates a new csv file.
        Parameters:
        fileName - the file name
        headerRow - the header row
        valueRows - the value rows
    • Method Detail

      • getHeaderRow

        public CSVRow getHeaderRow()
        Gets the header row.
        Returns:
        the headerRow
      • addValueRow

        public void addValueRow​(CSVRow row)
        Adds the value row.
        Parameters:
        row - the row
      • setValueRows

        public void setValueRows​(List<CSVRow> valueRows)
        Sets the value rows.
        Parameters:
        valueRows - the new value rows
      • getValueRows

        public List<CSVRow> getValueRows()
        Gets the value rows.
        Returns:
        the valueRows
      • setHeaderRow

        public void setHeaderRow​(CSVRow headerRow)
        Sets the header row.
        Parameters:
        headerRow - the headerRow to set
      • getFileName

        public String getFileName()
        Gets the file name.
        Returns:
        the fileName
      • setFileName

        public void setFileName​(String fileName)
        Sets the file name.
        Parameters:
        fileName - the fileName to set
      • toString

        public String toString()
        To string.
        Overrides:
        toString in class Object
        Returns:
        the string