Interface ExcelAttributeTranslator<T extends ExcelAttribute>

All Superinterfaces:
org.springframework.core.Ordered
All Known Implementing Classes:
AbstractClassificationAttributeTranslator, AbstractClassificationRangeTranslator, ExcelClassificationEnumTypeTranslator, ExcelClassificationJavaTypeTranslator, ExcelClassificationMediaTranslator, ExcelClassificationReferenceTranslator

public interface ExcelAttributeTranslator<T extends ExcelAttribute> extends org.springframework.core.Ordered
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHandle(T excelAttribute)
     
    exportData(T excelAttribute, Object objectToExport)
     
    importData(ExcelAttribute excelAttribute, ImportParameters importParameters, ExcelImportContext excelImportContext)
    Imports data based on provided importParameters for given excel attribute.
    default String
    referenceFormat(T excelAttribute)
     

    Methods inherited from interface org.springframework.core.Ordered

    getOrder
  • Method Details

    • canHandle

      boolean canHandle(@Nonnull T excelAttribute)
    • exportData

      Optional<String> exportData(@Nonnull T excelAttribute, @Nonnull Object objectToExport)
    • referenceFormat

      default 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.