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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleancanHandle(T excelAttribute)java.util.Optional<java.lang.String>exportData(T excelAttribute, java.lang.Object objectToExport)ImpeximportData(ExcelAttribute excelAttribute, ImportParameters importParameters, ExcelImportContext excelImportContext)Imports data based on provided importParameters for given excel attribute.default java.lang.StringreferenceFormat(T 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 returnsImpexthanks 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 importedimportParameters- contains information about language for localized field, type code, parsed parameters inserted into excel's cell.excelImportContext- excel's context- Returns:
Impexobject which is representation of impex script.
-
-