Class CopyrightTranslator
java.lang.Object
de.hybris.platform.impex.jalo.translators.AbstractValueTranslator
de.hybris.platform.acceleratorservices.dataimport.batch.converter.CopyrightTranslator
Copyright ValueTranslator that format copyright year by using given date format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexportValue(Object value) Translates an attribute value for export usage.importValue(String valueExpr, Item toItem) Translates a tokenized csv value for import usage.Methods inherited from class de.hybris.platform.impex.jalo.translators.AbstractValueTranslator
clearStatus, createTranslator, createTranslator, createTranslator, debug, error, getColumnDescriptor, getFlexibleSearch, info, init, isDebugEnabled, isInfoEnabled, setEmpty, setError, validate, warn, wasEmpty, wasUnresolved
-
Constructor Details
-
CopyrightTranslator
public CopyrightTranslator()
-
-
Method Details
-
exportValue
Description copied from class:AbstractValueTranslatorTranslates an attribute value for export usage. This means the attribute value must be transformed into a string which should be re-importable again.- Specified by:
exportValuein classAbstractValueTranslator- Parameters:
value- value to translate- Returns:
- String translated value
-
importValue
Description copied from class:AbstractValueTranslatorTranslates a tokenized csv value for import usage. This means that the result object must be a instance of the expected attribute type.- Specified by:
importValuein classAbstractValueTranslator- Parameters:
valueExpr- expression to translatetoItem- the target item in case it already exist, null otherwise (for partOf attributes!)- Returns:
- Object translated value
-