public abstract class SingleValueTranslator extends AbstractValueTranslator
| Constructor and Description |
|---|
SingleValueTranslator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
convertToJalo(String expr,
Item forItem)
Converts a non-null and non-empty string into a jalo attribute value.
|
protected abstract String |
convertToString(Object value)
Converts a non-null jalo attribute value into its string representation.
|
String |
exportValue(Object value)
Translates an attribute value for export usage.
|
protected Object |
getEmptyValue()
The representation of an empty value this translator uses.
|
Object |
importValue(String valueExpr,
Item toItem)
Translates a tokenized csv value for import usage.
|
protected boolean |
isEmpty(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(String expr)
expr - expression to checkprotected Object getEmptyValue()
public final Object importValue(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 String exportValue(Object value) throws JaloInvalidParameterException
AbstractValueTranslatorexportValue in class AbstractValueTranslatorvalue - value to translateJaloInvalidParameterException - value can not be translated with this translator or is invalidprotected abstract Object convertToJalo(String expr, Item forItem)
expr - string to translateforItem - item instance the translated value will be set to as attributeCopyright © 2017 SAP SE. All Rights Reserved.