Class PromotionPriceRowsTranslator.PriceRowTranslator

Enclosing class:
PromotionPriceRowsTranslator

protected static class PromotionPriceRowsTranslator.PriceRowTranslator extends SingleValueTranslator
  • Constructor Details

    • PriceRowTranslator

      protected PriceRowTranslator()
  • Method Details

    • init

      public void init(StandardColumnDescriptor standardColumnDescriptor)
      Description copied from class: AbstractValueTranslator
      Called once per header creation to allow configuring this translator using column modifiers etc.
      Overrides:
      init in class AbstractValueTranslator
      Parameters:
      standardColumnDescriptor - descriptor where the value to translate belongs to
    • convertToJalo

      protected Object convertToJalo(String valueExpr, Item forItem)
      Description copied from class: SingleValueTranslator
      Converts a non-null and non-empty string into a jalo attribute value.
      Specified by:
      convertToJalo in class SingleValueTranslator
      Parameters:
      valueExpr - string to translate
      forItem - item instance the translated value will be set to as attribute
      Returns:
      Object translated value
    • convertToString

      protected String convertToString(Object object)
      Description copied from class: SingleValueTranslator
      Converts a non-null jalo attribute value into its string representation.
      Specified by:
      convertToString in class SingleValueTranslator
      Parameters:
      object - value to translate
      Returns:
      translated value