Interface SpecialValueTranslator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void init​(SpecialColumnDescriptor columnDescriptor)
      Called once upon header creation to do some initial setup logic.
      boolean isEmpty​(java.lang.String cellValue)
      Evaluates whether or not a cell value is treated as empty.
      java.lang.String performExport​(Item item)
      Called each time an item is exported using the enclosing header.
      void performImport​(java.lang.String cellValue, Item processedItem)
      Called each time a non-empty cell value has to be imported.
      void validate​(java.lang.String expr)
      Validates the special column definition.
    • Method Detail

      • performExport

        java.lang.String performExport​(Item item)
                                throws ImpExException
        Called each time an item is exported using the enclosing header.
        Parameters:
        item - the item to export
        Returns:
        the string representation of the value to export
        Throws:
        ImpExException - indicates an export error
      • performImport

        void performImport​(java.lang.String cellValue,
                           Item processedItem)
                    throws ImpExException
        Called each time a non-empty cell value has to be imported.
        Parameters:
        cellValue - the cell value string
        processedItem - the item to import the value for
        Throws:
        ImpExException - indicates an import error
      • isEmpty

        boolean isEmpty​(java.lang.String cellValue)
        Evaluates whether or not a cell value is treated as empty.

        Empty cell values are not passed to performImport(String, Item).

        Parameters:
        cellValue - the cell value string
        Returns:
        true if the cell value is empty