Class B2BUnitAddressDeletionNotificationTranslator
- java.lang.Object
-
- de.hybris.platform.impex.jalo.translators.AbstractSpecialValueTranslator
-
- com.sap.hybris.sapcustomerb2b.inbound.B2BUnitAddressDeletionNotificationTranslator
-
- All Implemented Interfaces:
SpecialValueTranslator
public class B2BUnitAddressDeletionNotificationTranslator extends AbstractSpecialValueTranslator
This class includes the translator for B2BUnit address deletion notification
-
-
Constructor Summary
Constructors Constructor Description B2BUnitAddressDeletionNotificationTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description B2BUnitAddressDeletionServicegetB2BUnitAddressDeletionService()voidinit(SpecialColumnDescriptor columnDescriptor)Called once upon header creation to do some initial setup logic.booleanisEmpty(java.lang.String paramString)Treatsnulland '' as empty cells.java.lang.StringperformExport(Item paramItem)Called each time an item is exported using the enclosing header.voidperformImport(java.lang.String transformationExpression, Item processedItem)Called each time a non-empty cell value has to be imported.voidsetB2BUnitAddressDeletionService(B2BUnitAddressDeletionService b2bUnitAddressDeletionService)-
Methods inherited from class de.hybris.platform.impex.jalo.translators.AbstractSpecialValueTranslator
validate
-
-
-
-
Method Detail
-
getB2BUnitAddressDeletionService
public B2BUnitAddressDeletionService getB2BUnitAddressDeletionService()
- Returns:
- B2BUnitAddressDeletionService
-
setB2BUnitAddressDeletionService
public void setB2BUnitAddressDeletionService(B2BUnitAddressDeletionService b2bUnitAddressDeletionService)
- Parameters:
b2bUnitAddressDeletionService-
-
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
-
performImport
public void performImport(java.lang.String transformationExpression, Item processedItem) throws ImpExExceptionDescription copied from interface:SpecialValueTranslatorCalled each time a non-empty cell value has to be imported.- Specified by:
performImportin interfaceSpecialValueTranslator- Overrides:
performImportin classAbstractSpecialValueTranslator- Parameters:
transformationExpression- the cell value stringprocessedItem- the item to import the value for- Throws:
ImpExException- indicates an import error
-
performExport
public java.lang.String performExport(Item paramItem) 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:
paramItem- the item to export- Returns:
- the string representation of the value to export
- Throws:
ImpExException- indicates an export error
-
isEmpty
public boolean isEmpty(java.lang.String paramString)
Description copied from class:AbstractSpecialValueTranslatorTreatsnulland '' as empty cells.- Specified by:
isEmptyin interfaceSpecialValueTranslator- Overrides:
isEmptyin classAbstractSpecialValueTranslator- Parameters:
paramString- the cell value string- Returns:
trueif the cell value is empty- See Also:
SpecialValueTranslator.isEmpty(java.lang.String)
-
-