Class Europe1RowTranslator
java.lang.Object
de.hybris.platform.impex.jalo.translators.AbstractValueTranslator
de.hybris.platform.impex.jalo.translators.SingleValueTranslator
de.hybris.platform.europe1.jalo.impex.Europe1RowTranslator
- Direct Known Subclasses:
Europe1PricesTranslator.Europe1PriceRowTranslator,Europe1ProductDiscountTranslator.Europe1DiscountRowTranslator,Europe1UserDiscountsTranslator.Europe1GlobalDiscountRowTranslator
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEurope1RowTranslator(SimpleDateFormat dateFormat, NumberFormat numberFormat, Locale loc) For testing purposes. -
Method Summary
Modifier and TypeMethodDescriptionprotected Mapprotected Mapprotected DateFormatprotected StringgetDateFormatString(AbstractDescriptor columnDescriptor) protected NumberFormatprotected StringgetNumberFormatString(AbstractDescriptor columnDescriptor) voidinit(StandardColumnDescriptor columnDescriptor) Called once per header creation to allow configuring this translator using column modifiers etc.protected Europe1RowTranslator.ParsedCurrencyparseCurrency(String valueExpr) protected DateRangeparseDateRange(String valueExpr) Parses a given daterange expression to aDateRangeobject.protected DatetransformEndDate(Date endDate) Transforms the time of the given date to 23:59:59 if it is 00:00:00.protected DatetransformStartDate(Date startDate) TPlease override this method if you want to add your own transformation.Methods inherited from class de.hybris.platform.impex.jalo.translators.SingleValueTranslator
convertToJalo, convertToString, exportValue, getEmptyValue, importValue, isEmptyMethods inherited from class de.hybris.platform.impex.jalo.translators.AbstractValueTranslator
clearStatus, createTranslator, createTranslator, createTranslator, debug, error, getColumnDescriptor, getFlexibleSearch, info, isDebugEnabled, isInfoEnabled, setEmpty, setError, validate, warn, wasEmpty, wasUnresolved
-
Constructor Details
-
Europe1RowTranslator
public Europe1RowTranslator() -
Europe1RowTranslator
For testing purposes.
-
-
Method Details
-
init
Description copied from class:AbstractValueTranslatorCalled once per header creation to allow configuring this translator using column modifiers etc.- Overrides:
initin classAbstractValueTranslator- Parameters:
columnDescriptor- descriptor where the value to translate belongs to
-
parseDateRange
Parses a given daterange expression to aDateRangeobject.- Parameters:
valueExpr- expression to parse- Returns:
- parsed date range
-
transformStartDate
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
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
-
getDateFormat
-
getNumberFormat
-
getCurrenciesISOs
-
getCurrenciesSymbols
-
getDateFormatString
-
getNumberFormatString
-