public static class Europe1PricesTranslator.Europe1PriceRowTranslator extends Europe1RowTranslator
Syntax:
( ({user}|{userPriceGroup})? {quantity} {unitCode} '=')?
{price} ({currencyISO}|{currencySign}) ('B'|'N'|'G')?
('['{from}','{to}']')? ({priceRowChannel})?
Some examples:
dateformat modifier and pay
attention for the fact, that the time of the end date is transformed to 23:59:59 if it was imported as 00:00:00.
If you want to disable this transformation logic, override the
Europe1RowTranslator.transformEndDate(java.util.Date) method.Europe1RowTranslator.ParsedCurrency| Constructor and Description |
|---|
Europe1PriceRowTranslator() |
Europe1PriceRowTranslator(SimpleDateFormat dateFormat,
NumberFormat numberFormat,
Locale loc) |
| Modifier and Type | Method and Description |
|---|---|
Object |
convertToJalo(String valueExpr,
Item forItem)
Converts a non-null and non-empty string into a jalo attribute value.
|
protected String |
convertToString(Object value)
Converts a non-null jalo attribute value into its string representation.
|
void |
init(StandardColumnDescriptor columnDescriptor)
Called once per header creation to allow configuring this translator using column modifiers etc.
|
void |
validate(StandardColumnDescriptor standardcd)
Validates the value translator once per header creation.
|
getCurrenciesISOs, getCurrenciesSymbols, getDateFormat, getDateFormatString, getNumberFormat, getNumberFormatString, parseCurrency, parseDateRange, transformEndDate, transformStartDateexportValue, getEmptyValue, importValue, isEmptyclearStatus, createTranslator, createTranslator, createTranslator, debug, error, getColumnDescriptor, getFlexibleSearch, info, isDebugEnabled, isInfoEnabled, setEmpty, setError, warn, wasEmpty, wasUnresolvedpublic Europe1PriceRowTranslator()
public Europe1PriceRowTranslator(SimpleDateFormat dateFormat, NumberFormat numberFormat, Locale loc)
public void validate(StandardColumnDescriptor standardcd) throws HeaderValidationException
AbstractValueTranslatorvalidate in class AbstractValueTranslatorstandardcd - descriptor where the value to translate belongs toHeaderValidationException - validation has thrown errorspublic void init(StandardColumnDescriptor columnDescriptor)
AbstractValueTranslatorinit in class Europe1RowTranslatorcolumnDescriptor - descriptor where the value to translate belongs topublic Object convertToJalo(String valueExpr, Item forItem)
SingleValueTranslatorconvertToJalo in class SingleValueTranslatorvalueExpr - string to translateforItem - item instance the translated value will be set to as attributeprotected String convertToString(Object value)
SingleValueTranslatorconvertToString in class SingleValueTranslatorvalue - value to translateCopyright © 2017 SAP SE. All Rights Reserved.