Class BasicIDARECell

    • Constructor Detail

      • BasicIDARECell

        public BasicIDARECell​(IDARECell.CellType type,
                              BasicIDARERow containingRow)
        Basic Constructor indicating the containing row and the type of the cell
        Parameters:
        type - the CellType of the cell
        containingRow - The Row containing this cell
      • BasicIDARECell

        public BasicIDARECell​(IDARECell.CellType type,
                              String value,
                              BasicIDARERow containingRow)
        Basic Constructor indicating the containing row and the type of the cell, along with the value to be stored.
        Parameters:
        type - the CellType of this cell
        value - the value of this cell
        containingRow - the row containing this cell
    • Method Detail

      • getColumnIndex

        public int getColumnIndex()
        Description copied from interface: IDARECell
        Get the index of the column of this cell.
        Specified by:
        getColumnIndex in interface IDARECell
        Returns:
        the column index
      • getNumericCellValue

        public double getNumericCellValue()
        Description copied from interface: IDARECell
        Get the Numeric Value of this cell, if it can be converted to numeric. Can throw exceptions if the contained value is either not a parsable double or the Cell Type is String.
        Specified by:
        getNumericCellValue in interface IDARECell
        Returns:
        the numeric value of this cell
      • getStringCellValue

        public String getStringCellValue()
        Description copied from interface: IDARECell
        Get the string cell value, if the cell is a string cell. Can throw exceptions if the cell type is numeric.
        Specified by:
        getStringCellValue in interface IDARECell
        Returns:
        the string cell value.
      • getFormattedCellValue

        public String getFormattedCellValue()
        Description copied from interface: IDARECell
        Get a string representation of the value of this cell (regardless what this cell actually represents).
        Specified by:
        getFormattedCellValue in interface IDARECell
        Returns:
        a String representing the value of this cell.
      • setValue

        public void setValue​(String value)
        Set the value (this is unchecked wrt the type defined).
        Parameters:
        value - the value this Cell should have