org.eclipse.emf.ecore
Interface EDataType.Internal.ConversionDelegate

All Known Implementing Classes:
XcoreConversionDelegate
Enclosing interface:
EDataType.Internal

public static interface EDataType.Internal.ConversionDelegate

An API for converting values of the data type to and from a string representation.


Nested Class Summary
static interface EDataType.Internal.ConversionDelegate.Factory
          A factory for creating conversion delegates.
 
Method Summary
 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.
 

Method Detail

convertToString

java.lang.String convertToString(java.lang.Object value)
Converts a value of the data type to a string literal.

Parameters:
value - the value to be converted.
Returns:
the literal representation of the value.

createFromString

java.lang.Object createFromString(java.lang.String literal)
Creates a value of the data type from a string literal.

Parameters:
literal - the string literal to be converted.
Returns:
the value of the literal representation.

Copyright 2001-2012 IBM Corporation and others.
All Rights Reserved.