public final class XMIStringConverterHelper extends Object
Modifier and Type | Method and Description |
---|---|
static org.eclipse.emf.ecore.EObject |
deserializeObject(String object)
Gets an EObject from an XMI string.
|
static String |
getSerializedEObject(org.eclipse.emf.ecore.EObject eObject)
Uses EMF serialization to transform the object to a string.
|
public static String getSerializedEObject(org.eclipse.emf.ecore.EObject eObject) throws IOException
eObject
- the objectIOException
- in case of an error during savepublic static org.eclipse.emf.ecore.EObject deserializeObject(String object) throws IOException
object
- the XMI stringIOException
- in case the object could not be deserializedCopyright © 2016. All rights reserved.