Interface ExcelAttributeTranslator<T extends ExcelAttribute>

    • Method Detail

      • canHandle

        boolean canHandle​(@Nonnull
                          T excelAttribute)
      • exportData

        java.util.Optional<java.lang.String> exportData​(@Nonnull
                                                        T excelAttribute,
                                                        @Nonnull
                                                        java.lang.Object objectToExport)
      • referenceFormat

        default java.lang.String referenceFormat​(@Nonnull
                                                 T excelAttribute)
      • importData

        Impex importData​(ExcelAttribute excelAttribute,
                         ImportParameters importParameters,
                         ExcelImportContext excelImportContext)
        Imports data based on provided importParameters for given excel attribute. The method returns Impex thanks to that it is possible to creating additional entries ( or example creating part-of entries: product - price row, ect.)
        Parameters:
        excelAttribute - describes attribute which should be imported
        importParameters - contains information about language for localized field, type code, parsed parameters inserted into excel's cell.
        excelImportContext - excel's context
        Returns:
        Impex object which is representation of impex script.