public class FileLoaderValueTranslator extends AbstractValueTranslator
| Constructor and Description |
|---|
FileLoaderValueTranslator() |
| Modifier and Type | Method and Description |
|---|---|
String |
exportValue(Object value)
Translates an attribute value for export usage.
|
String |
importData(String path) |
Object |
importValue(String valueExpr,
Item toItem)
Translates a tokenized csv value for import usage.
|
protected boolean |
isAbsolutePath(String path) |
protected boolean |
isJarBasedPath(String path) |
protected boolean |
isZipBasedPath(String path) |
protected String |
loadFromFile(String path) |
protected String |
loadFromJarResource(String path) |
protected String |
loadFromZipFile(String path) |
protected String |
readFromStream(Reader reader) |
clearStatus, createTranslator, createTranslator, createTranslator, debug, error, getColumnDescriptor, getFlexibleSearch, info, init, isDebugEnabled, isInfoEnabled, setEmpty, setError, validate, warn, wasEmpty, wasUnresolvedpublic String exportValue(Object value) throws JaloInvalidParameterException
AbstractValueTranslatorexportValue in class AbstractValueTranslatorvalue - value to translateJaloInvalidParameterException - value can not be translated with this translator or is invalidpublic 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 invalidprotected String readFromStream(Reader reader) throws IOException
IOExceptionprotected boolean isAbsolutePath(String path)
protected boolean isJarBasedPath(String path)
protected boolean isZipBasedPath(String path)
Copyright © 2017 SAP SE. All Rights Reserved.