public class ClassificationAttributeValueTranslator extends SingleValueTranslator
ClassificationAttributeValue and vice versa. For translating the String to an
attribute value, all assigned values of the specified classification attribute in respect to the classification class
will be checked for a matching of code or name. In case of translating an attribute value to a String simply the code
of the value is used.| Constructor and Description |
|---|
ClassificationAttributeValueTranslator(ClassAttributeAssignment assignment)
Creates a new translator specifying the assignment which can be used for retrieving all assigned values as well as
the calling translator for retrieving of context information.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
convertToJalo(String string,
Item item)
Converts a non-null and non-empty string into a jalo attribute value.
|
protected String |
convertToString(Object obj)
Converts a non-null jalo attribute value into its string representation.
|
exportValue, getEmptyValue, importValue, isEmptyclearStatus, createTranslator, createTranslator, createTranslator, debug, error, getColumnDescriptor, getFlexibleSearch, info, init, isDebugEnabled, isInfoEnabled, setEmpty, setError, validate, warn, wasEmpty, wasUnresolvedpublic ClassificationAttributeValueTranslator(ClassAttributeAssignment assignment)
assignment - will be used for retrieving all assigned valuesprotected Object convertToJalo(String string, Item item)
SingleValueTranslatorconvertToJalo in class SingleValueTranslatorstring - string to translateitem - item instance the translated value will be set to as attributeprotected String convertToString(Object obj)
SingleValueTranslatorconvertToString in class SingleValueTranslatorobj - value to translateCopyright © 2017 SAP SE. All Rights Reserved.