public class ClassificationAttributeTranslator extends AbstractSpecialValueTranslator implements NotifiedSpecialValueTranslator
| Modifier and Type | Class and Description |
|---|---|
static interface |
ClassificationAttributeTranslator.Modifiers |
| Modifier and Type | Field and Description |
|---|---|
protected PK |
allDoneFor |
protected char |
attributeSeparator |
protected ClassificationAttribute |
classAttr |
protected ClassAttributeAssignment |
classAttrAssignment |
protected String |
className |
protected ClassificationSystemVersion |
classSystemVersion |
protected char |
collectionDelimiter |
protected String |
currentCellValue |
protected String |
dateFormatString |
static String |
IMPEX_NONEXISTEND_CLSATTRVALUE_FALLBACK_KEY |
protected Language |
lang |
protected Locale |
locale |
protected String |
numberFormatString |
protected String |
qualfier |
protected String |
systemName |
protected char[] |
TO_ESCAPE |
protected String |
versionName |
| Constructor and Description |
|---|
ClassificationAttributeTranslator()
General no-arg constructor
|
ClassificationAttributeTranslator(ClassificationSystemVersion sysVer,
ClassificationAttribute attr,
char delimiter,
Language lang)
Testing purpose constructor.
|
isEmpty, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisEmpty, validatepublic static final String IMPEX_NONEXISTEND_CLSATTRVALUE_FALLBACK_KEY
protected String qualfier
protected String systemName
protected String versionName
protected String className
protected Language lang
protected Locale locale
protected String dateFormatString
protected String numberFormatString
protected ClassificationAttribute classAttr
protected ClassAttributeAssignment classAttrAssignment
protected ClassificationSystemVersion classSystemVersion
protected char collectionDelimiter
protected char attributeSeparator
protected char[] TO_ESCAPE
protected PK allDoneFor
protected String currentCellValue
public ClassificationAttributeTranslator()
public ClassificationAttributeTranslator(ClassificationSystemVersion sysVer, ClassificationAttribute attr, char delimiter, Language lang)
public void init(SpecialColumnDescriptor columnDescriptor) throws HeaderValidationException
SpecialValueTranslatorinit in interface SpecialValueTranslatorinit in class AbstractSpecialValueTranslatorcolumnDescriptor - the newly created column descriptorHeaderValidationException - indicates that the column descriptor is not configured properlyprotected AbstractValueTranslator getSingleCellValueTranslator(ClassAttributeAssignment assignment)
protected AbstractValueTranslator getFallbackValueTranslator()
protected ClassAttributeAssignment getAssignment()
protected ClassAttributeAssignment matchAssignment(Collection<ClassificationClass> classes)
protected SessionContext getValueCtx(boolean localized) throws HeaderValidationException
HeaderValidationExceptionprotected TypedFeature getFeature(Product product)
public String performExport(Item item) throws ImpExException
SpecialValueTranslatorperformExport in interface SpecialValueTranslatorperformExport in class AbstractSpecialValueTranslatoritem - the item to exportImpExException - indicates an export errorpublic void performImport(String cellValue, Item processedItem) throws ImpExException
SpecialValueTranslatorperformImport in interface SpecialValueTranslatorperformImport in class AbstractSpecialValueTranslatorcellValue - the cell value stringprocessedItem - the item to import the value forImpExException - indicates an import error@Deprecated public Collection<Object> translateCurrentValues(ValueLine line, ClassAttributeAssignment assignment, Product processedItem) throws HeaderValidationException
HeaderValidationExceptionpublic Collection<UnitAwareValue> translateCurrentUnitAwareValues(ValueLine line, ClassAttributeAssignment assignment, Product processedItem) throws HeaderValidationException
HeaderValidationExceptionprotected List splitValues(ClassAttributeAssignment assignment, String valueCollection)
public void notifyTranslationEnd(ValueLine line, HeaderDescriptor header, Item processedItem) throws ImpExException
NotifiedSpecialValueTranslatorSpecialValueTranslators used in header have been triggered. Implement here special logic
which has to be executed after end of overall translation.notifyTranslationEnd in interface NotifiedSpecialValueTranslatorline - current value lineheader - current headerprocessedItem - item which was created or updatedImpExException - an ImpEx specific problem has occurCopyright © 2017 SAP SE. All Rights Reserved.