Class Europe1PricesTranslator
java.lang.Object
de.hybris.platform.impex.jalo.translators.AbstractValueTranslator
de.hybris.platform.impex.jalo.translators.CollectionValueTranslator
de.hybris.platform.europe1.jalo.impex.Europe1PricesTranslator
Translates the Europe1 Product.europe1prices attribute.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTranslates a single price (row) expression.static class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEurope1PricesTranslator(AbstractValueTranslator elementTranslator) For testing purposes. -
Method Summary
Modifier and TypeMethodDescriptionprotected ListsplitAndUnescape(String valueExpr) Superclass method overridden to allow using the collection delimiter for prices as well:Methods inherited from class de.hybris.platform.impex.jalo.translators.CollectionValueTranslator
exportValue, getCollectionValueDelimiter, getElementTranslator, importValue, init, isDelimiter, isEmpty, joinAndEscape, processItem, processItem, processItems, processItems, validateMethods inherited from class de.hybris.platform.impex.jalo.translators.AbstractValueTranslator
clearStatus, createTranslator, createTranslator, createTranslator, debug, error, getColumnDescriptor, getFlexibleSearch, info, isDebugEnabled, isInfoEnabled, setEmpty, setError, warn, wasEmpty, wasUnresolved
-
Field Details
-
BRUTTO
public static final char BRUTTO- See Also:
-
NETTO
public static final char NETTO- See Also:
-
GROSS
public static final char GROSS- See Also:
-
-
Constructor Details
-
Europe1PricesTranslator
public Europe1PricesTranslator() -
Europe1PricesTranslator
For testing purposes. Needed to set formats.- Parameters:
elementTranslator- element translator to use.
-
-
Method Details
-
splitAndUnescape
Superclass method overridden to allow using the collection delimiter for prices as well:"123,45 EUR" would normally be split into "123","45 EUR" but we'll put them together again "123,45 EUR, 445 EUR" will now result in "123,45 EUR","445 EUR"- Overrides:
splitAndUnescapein classCollectionValueTranslator- Parameters:
valueExpr- the cell value- Returns:
- the list of element tokens
-