Class AbstractSpreadSheetColumnConverter<T>

    • Field Detail

      • m_KeepFailed

        protected boolean m_KeepFailed
        whether to keep cell values of failed conversions rather than setting them to zero.
    • Constructor Detail

      • AbstractSpreadSheetColumnConverter

        public AbstractSpreadSheetColumnConverter()
    • Method Detail

      • setColumn

        public void setColumn​(SpreadSheetColumnIndex value)
        Sets the column to convert.
        Parameters:
        value - the index
      • columnTipText

        public abstract String columnTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setKeepFailed

        public void setKeepFailed​(boolean value)
        Sets whether to keep cells with failed conversion rather than setting them to missing.
        Parameters:
        value - if true failed cells are kept
      • getKeepFailed

        public boolean getKeepFailed()
        Returns whether to keep cells with failed conversion rather than setting them to missing.
        Returns:
        true if to keep them
      • keepFailedTipText

        public String keepFailedTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • preConvert

        protected void preConvert​(SpreadSheet input)
        Prepares the conversion.
        Parameters:
        input - the spreadsheet to convert
      • convert

        protected abstract void convert​(Cell cellOld,
                                        Cell cellNew)
                                 throws Exception
        Converts the cell's content to a new format.
        Parameters:
        cellOld - the current cell
        cellNew - the new cell with the converted content
        Throws:
        Exception - if conversion fails