public class XcoreConversionDelegate extends java.lang.Object implements EDataType.Internal.ConversionDelegate
EDataType.Internal.ConversionDelegate.Factory
Constructor and Description |
---|
XcoreConversionDelegate() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convertToString(java.lang.Object value)
Converts a value of the data type to a string literal.
|
java.lang.Object |
createFromString(java.lang.String literal)
Creates a value of the data type from a string literal.
|
void |
initialize(XBlockExpression createBody,
XBlockExpression convertBody,
EDataType eDataType,
XcoreInterpreter interpreter) |
public void initialize(XBlockExpression createBody, XBlockExpression convertBody, EDataType eDataType, XcoreInterpreter interpreter)
public java.lang.String convertToString(java.lang.Object value)
EDataType.Internal.ConversionDelegate
convertToString
in interface EDataType.Internal.ConversionDelegate
value
- the value to be converted.public java.lang.Object createFromString(java.lang.String literal)
EDataType.Internal.ConversionDelegate
createFromString
in interface EDataType.Internal.ConversionDelegate
literal
- the string literal to be converted.