Class Europe1RowTranslator

Direct Known Subclasses:
Europe1PricesTranslator.Europe1PriceRowTranslator, Europe1ProductDiscountTranslator.Europe1DiscountRowTranslator, Europe1UserDiscountsTranslator.Europe1GlobalDiscountRowTranslator

public abstract class Europe1RowTranslator extends SingleValueTranslator
  • Constructor Details

    • Europe1RowTranslator

      public Europe1RowTranslator()
    • Europe1RowTranslator

      public Europe1RowTranslator(SimpleDateFormat dateFormat, NumberFormat numberFormat, Locale loc)
      For testing purposes.
  • Method Details

    • init

      public void init(StandardColumnDescriptor columnDescriptor)
      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:
      columnDescriptor - descriptor where the value to translate belongs to
    • parseDateRange

      protected DateRange parseDateRange(String valueExpr)
      Parses a given daterange expression to a DateRange object.
      Parameters:
      valueExpr - expression to parse
      Returns:
      parsed date range
    • transformStartDate

      protected Date transformStartDate(Date startDate)
      TPlease override this method if you want to add your own transformation.
      Parameters:
      startDate - date to transform
      Returns:
      transformed date (given one is returned)
    • transformEndDate

      protected Date transformEndDate(Date endDate)
      Transforms the time of the given date to 23:59:59 if it is 00:00:00. This is needed for the end date of the daterange attribute because of better search results. If start date same as end date you get in problems). Please override this method if you disable the special transformation or if you want to add your own transformation.
      Parameters:
      endDate - date to transform
      Returns:
      transformed date (time is set to 23:59:59 if it was 00:00:00)
    • parseCurrency

      protected Europe1RowTranslator.ParsedCurrency parseCurrency(String valueExpr)
    • getDateFormat

      protected DateFormat getDateFormat()
    • getNumberFormat

      protected NumberFormat getNumberFormat()
    • getCurrenciesISOs

      protected Map getCurrenciesISOs()
    • getCurrenciesSymbols

      protected Map getCurrenciesSymbols()
    • getDateFormatString

      protected String getDateFormatString(AbstractDescriptor columnDescriptor)
    • getNumberFormatString

      protected String getNumberFormatString(AbstractDescriptor columnDescriptor)