public interface SpecialValueTranslator
SpecialColumnDescriptors, similar
to the AbstractValueTranslator which is used by
StandardColumnDescriptor. The difference is that the associated
SpecialColumnDescriptor does not specify a mapping to an
AbstractDescriptor like the
StandardColumnDescriptor. So it is not clear when reading the ImpEx
script which attribute will be updated. This translator always implements special logic.| Modifier and Type | Method and Description |
|---|---|
void |
init(SpecialColumnDescriptor columnDescriptor)
Called once upon header creation to do some initial setup logic.
|
boolean |
isEmpty(java.lang.String cellValue)
Evaluates whether or not a cell value is treated as empty.
|
java.lang.String |
performExport(Item item)
Called each time an item is exported using the enclosing header.
|
void |
performImport(java.lang.String cellValue,
Item processedItem)
Called each time a non-empty cell value has to be imported.
|
void |
validate(java.lang.String expr)
Validates the special column definition.
|
void init(SpecialColumnDescriptor columnDescriptor) throws HeaderValidationException
columnDescriptor - the newly created column descriptorHeaderValidationException - indicates that the column descriptor is not configured properlyvoid validate(java.lang.String expr)
throws HeaderValidationException
expr - the definition expressionHeaderValidationException - if the expression is not validjava.lang.String performExport(Item item) throws ImpExException
item - the item to exportImpExException - indicates an export errorvoid performImport(java.lang.String cellValue,
Item processedItem)
throws ImpExException
cellValue - the cell value stringprocessedItem - the item to import the value forImpExException - indicates an import errorboolean isEmpty(java.lang.String cellValue)
Empty cell values are not passed to performImport(String, Item).
cellValue - the cell value stringtrue if the cell value is emptyCopyright © 2018 SAP SE. All Rights Reserved.