public class VelocityTranslator extends AbstractSpecialValueTranslator
| Modifier and Type | Class and Description |
|---|---|
static interface |
VelocityTranslator.Modifiers |
| Constructor and Description |
|---|
VelocityTranslator()
Required no-arg constructor.
|
VelocityTranslator(String templateName,
String expression)
Constructor for testing purpose.
|
| Modifier and Type | Method and Description |
|---|---|
void |
init(SpecialColumnDescriptor columnDescriptor)
Called once upon header creation to do some initial setup logic.
|
String |
performExport(Item item)
Called each time an item is exported using the enclosing header.
|
isEmpty, performImport, validatepublic void init(SpecialColumnDescriptor columnDescriptor) throws HeaderValidationException
SpecialValueTranslatorinit in interface SpecialValueTranslatorinit in class AbstractSpecialValueTranslatorcolumnDescriptor - the newly created column descriptorHeaderValidationException - indicates that the column descriptor is not configured properlypublic String performExport(Item item) throws ImpExException
SpecialValueTranslatorperformExport in interface SpecialValueTranslatorperformExport in class AbstractSpecialValueTranslatoritem - the item to exportImpExException - indicates an export errorCopyright © 2017 SAP SE. All Rights Reserved.