Interface CSVCellDecorator

All Known Implementing Classes:
AbstractImpExCSVCellDecorator, ChineseLogisticCellDecorator, ChineseTaxInvoiceCellDecorator, ConsignmentTrackingCellDecorator, CustomerNameDecorator, EClassSuperCategoryDecorator, ExternalImportKeyCellDecorator, MarketplaceCellDecorator, MarketplaceLogisticCellDecorator, MarketplaceTaxInvoiceCellDecorator

public interface CSVCellDecorator
By using a cell decorator you can intercept the interpreting of a specific cell of a value line between parsing and translating of it. Means the cell value is parsed, then the cell decorator is called which can manipulate the parsed string and then the translation of the string starts.
The usage of a cell decorator can be configured by adding the modifier cellDecorator to a header attribute specifying you decorator class.
 INSERT MyType;...;myAttribute[cellDecorator=de.hybris.platform.catalog.jalo.classification.eclass.EClassSuperCategoryDecorator]
 
  • Method Summary

    Modifier and Type
    Method
    Description
    decorate(int position, Map<Integer,String> srcLine)
    Decorates and returns the parsed attribute value.
  • Method Details

    • decorate

      String decorate(int position, Map<Integer,String> srcLine)
      Decorates and returns the parsed attribute value. The value can be gathered from given srcLine map by accessing element with given position key.
      Parameters:
      position - element key for given map where the parsed value to decorate is located
      srcLine - map containing whole parsed value line
      Returns:
      decorated attribute value