Class PromotionPriceRowsTranslator.PriceRowTranslator

    • Constructor Detail

      • PriceRowTranslator

        protected PriceRowTranslator()
    • Method Detail

      • 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 java.lang.Object convertToJalo​(java.lang.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 java.lang.String convertToString​(java.lang.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