Class VelocityTranslator
java.lang.Object
de.hybris.platform.impex.jalo.translators.AbstractSpecialValueTranslator
de.hybris.platform.impex.jalo.translators.VelocityTranslator
- All Implemented Interfaces:
SpecialValueTranslator
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRequired no-arg constructor.VelocityTranslator(String templateName, String expression) Constructor for testing purpose. -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(SpecialColumnDescriptor columnDescriptor) Called once upon header creation to do some initial setup logic.performExport(Item item) Called each time an item is exported using the enclosing header.Methods inherited from class de.hybris.platform.impex.jalo.translators.AbstractSpecialValueTranslator
isEmpty, performImport, validate
-
Constructor Details
-
VelocityTranslator
public VelocityTranslator()Required no-arg constructor. -
VelocityTranslator
Constructor for testing purpose.
-
-
Method Details
-
init
Description copied from interface:SpecialValueTranslatorCalled once upon header creation to do some initial setup logic.- Specified by:
initin interfaceSpecialValueTranslator- Overrides:
initin classAbstractSpecialValueTranslator- Parameters:
columnDescriptor- the newly created column descriptor- Throws:
HeaderValidationException- indicates that the column descriptor is not configured properly
-
performExport
Description copied from interface:SpecialValueTranslatorCalled each time an item is exported using the enclosing header.- Specified by:
performExportin interfaceSpecialValueTranslator- Overrides:
performExportin classAbstractSpecialValueTranslator- Parameters:
item- the item to export- Returns:
- the string representation of the value to export
- Throws:
ImpExException- indicates an export error
-