public abstract class DataConverter extends Object
Constructor and Description |
---|
DataConverter() |
Modifier and Type | Method and Description |
---|---|
abstract <T> T |
fromData(String content,
Class<T> valueType)
Implements conversion of the single value.
|
abstract String |
toData(Object value)
Implements conversion of the single value.
|
public abstract String toData(Object value) throws DataConverterException
value
- Java value to convert to String.DataConverterException
- if conversion of the value passed as parameter failed for any
reason.public abstract <T> T fromData(String content, Class<T> valueType) throws DataConverterException
data
- Simple Workflow Data value to convert to a Java object.DataConverterException
- if conversion of the data passed as parameter failed for any
reason.