public abstract class SingleValueTranslator extends AbstractValueTranslator
| Constructor and Description |
|---|
SingleValueTranslator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.Object |
convertToJalo(java.lang.String expr,
Item forItem)
Converts a non-null and non-empty string into a jalo attribute value.
|
protected abstract java.lang.String |
convertToString(java.lang.Object value)
Converts a non-null jalo attribute value into its string representation.
|
java.lang.String |
exportValue(java.lang.Object value)
Translates an attribute value for export usage.
|
protected java.lang.Object |
getEmptyValue()
The representation of an empty value this translator uses.
|
java.lang.Object |
importValue(java.lang.String valueExpr,
Item toItem)
Translates a tokenized csv value for import usage.
|
protected boolean |
isEmpty(java.lang.String expr)
Checks whether an expression is empty.
|
clearStatus, createTranslator, createTranslator, createTranslator, debug, error, getColumnDescriptor, getFlexibleSearch, info, init, isDebugEnabled, isInfoEnabled, setEmpty, setError, validate, warn, wasEmpty, wasUnresolvedprotected boolean isEmpty(java.lang.String expr)
expr - expression to checkprotected java.lang.Object getEmptyValue()
public final java.lang.Object importValue(java.lang.String valueExpr,
Item toItem)
throws JaloInvalidParameterException
AbstractValueTranslatorimportValue in class AbstractValueTranslatorvalueExpr - expression to translatetoItem - the target item in case it already exist, null otherwise (for partOf attributes!)JaloInvalidParameterException - value can not be translated with this translator or is invalidpublic final java.lang.String exportValue(java.lang.Object value)
throws JaloInvalidParameterException
AbstractValueTranslatorexportValue in class AbstractValueTranslatorvalue - value to translateJaloInvalidParameterException - value can not be translated with this translator or is invalidprotected abstract java.lang.Object convertToJalo(java.lang.String expr,
Item forItem)
expr - string to translateforItem - item instance the translated value will be set to as attributeprotected abstract java.lang.String convertToString(java.lang.Object value)
value - value to translateCopyright © 2018 SAP SE. All Rights Reserved.