public class ModelHelper
extends java.lang.Object
In particular, the class helps to:
loadEPackage(File) and saveEPackage(EPackage, File)saveModel(List, File))| Constructor and Description |
|---|
ModelHelper() |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.emf.ecore.EPackage |
loadEPackage(java.io.File path)
Loads a metamodel (as
EPackage) from a file |
static void |
saveEPackage(org.eclipse.emf.ecore.EPackage ePackage,
java.io.File resultPath)
Saves a metamodel (as
EPackage) into a file |
static void |
saveModel(java.util.List<org.eclipse.emf.ecore.EObject> elements,
java.io.File resultPath)
Saves a model (as a list of
EObjects) into a file |
public static void saveEPackage(org.eclipse.emf.ecore.EPackage ePackage,
java.io.File resultPath)
EPackage) into a fileePackage - The metamodelresultPath - The path to the filepublic static org.eclipse.emf.ecore.EPackage loadEPackage(java.io.File path)
EPackage) from a filepath - The path to the file to read the metamodelpublic static void saveModel(java.util.List<org.eclipse.emf.ecore.EObject> elements,
java.io.File resultPath)
EObjects) into a fileelements - List of model elements (as EObjects)resultPath - The path to write the model