Class VelocityTranslator
- java.lang.Object
-
- de.hybris.platform.impex.jalo.translators.AbstractSpecialValueTranslator
-
- de.hybris.platform.impex.jalo.translators.VelocityTranslator
-
- All Implemented Interfaces:
SpecialValueTranslator
public class VelocityTranslator extends AbstractSpecialValueTranslator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceVelocityTranslator.Modifiers
-
Constructor Summary
Constructors Constructor Description VelocityTranslator()Required no-arg constructor.VelocityTranslator(java.lang.String templateName, java.lang.String expression)Constructor for testing purpose.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(SpecialColumnDescriptor columnDescriptor)Called once upon header creation to do some initial setup logic.java.lang.StringperformExport(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
-
-
-
-
Method Detail
-
init
public void init(SpecialColumnDescriptor columnDescriptor) throws HeaderValidationException
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
public java.lang.String performExport(Item item) throws ImpExException
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
-
-