public class SerializeEMFObjectUtil
extends java.lang.Object
| Constructor and Description |
|---|
SerializeEMFObjectUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.emf.ecore.EObject |
loadModel(java.lang.String model)
Load a serialized SimuContext model and convert to an EMF object
|
static java.lang.String |
saveModel(org.eclipse.emf.ecore.EObject model)
Persist the SimuContext model object into a String
|
static boolean |
saveModel(org.eclipse.emf.ecore.EObject model,
java.io.OutputStream outputStream)
Persist the SimuContext model object into a stream
|
public static org.eclipse.emf.ecore.EObject loadModel(java.lang.String model)
inputStream - the input stream contain model byte arraypublic static boolean saveModel(org.eclipse.emf.ecore.EObject model,
java.io.OutputStream outputStream)
model - an EMF modeloutputStream - out stream to hold the model byte arraypublic static java.lang.String saveModel(org.eclipse.emf.ecore.EObject model)
model - an EMF model