Class XMIStringConverterHelper
- java.lang.Object
-
- org.eclipse.emfforms.internal.spreadsheet.core.converter.XMIStringConverterHelper
-
public final class XMIStringConverterHelper extends java.lang.Object
Helper class for transforming EObjects to a string and vice versa.- Author:
- jfaltermeier
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.emf.ecore.EObject
deserializeObject(java.lang.String object)
Gets an EObject from an XMI string.static java.lang.String
getSerializedEObject(org.eclipse.emf.ecore.EObject eObject)
Uses EMF serialization to transform the object to a string.
-
-
-
Method Detail
-
getSerializedEObject
public static java.lang.String getSerializedEObject(org.eclipse.emf.ecore.EObject eObject) throws java.io.IOException
Uses EMF serialization to transform the object to a string.- Parameters:
eObject
- the object- Returns:
- the string
- Throws:
java.io.IOException
- in case of an error during save
-
deserializeObject
public static org.eclipse.emf.ecore.EObject deserializeObject(java.lang.String object) throws java.io.IOException
Gets an EObject from an XMI string.- Parameters:
object
- the XMI string- Returns:
- the object
- Throws:
java.io.IOException
- in case the object could not be deserialized
-
-