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 interface
VelocityTranslator.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 void
init(SpecialColumnDescriptor columnDescriptor)
Called once upon header creation to do some initial setup logic.java.lang.String
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
-
-
-
-
Method Detail
-
init
public void init(SpecialColumnDescriptor columnDescriptor) throws HeaderValidationException
Description copied from interface:SpecialValueTranslator
Called once upon header creation to do some initial setup logic.- Specified by:
init
in interfaceSpecialValueTranslator
- Overrides:
init
in 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:SpecialValueTranslator
Called each time an item is exported using the enclosing header.- Specified by:
performExport
in interfaceSpecialValueTranslator
- Overrides:
performExport
in classAbstractSpecialValueTranslator
- Parameters:
item
- the item to export- Returns:
- the string representation of the value to export
- Throws:
ImpExException
- indicates an export error
-
-