Class Persistency
- java.lang.Object
-
- org.eclipse.emf.edapt.internal.migration.internal.Persistency
-
- Direct Known Subclasses:
CDOPersistency
public class Persistency extends Object
Helper class for loading and saving models.- Version:
- $Rev$
- Author:
- herrmama, $Author$
-
-
Constructor Summary
Constructors Constructor Description Persistency()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Metamodel
loadMetamodel(String fileName)
Load metamodel based on file name.static Metamodel
loadMetamodel(org.eclipse.emf.common.util.URI metamodelURI)
Load metamodel based onURI
.static Metamodel
loadMetamodel(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Create metamodel from aResourceSet
.static Model
loadModel(String fileName, Metamodel metamodel, IResourceSetFactory resourceSetFactory, IResourceSetProcessor postLoadProcessor)
Load model based on file name and metamodel.static Model
loadModel(List<org.eclipse.emf.common.util.URI> modelURIs, Metamodel metamodel, IResourceSetFactory resourceSetFactory, IResourceSetProcessor postLoadProcessor)
Load model based on a set ofURI
and metamodel.static Model
loadModel(org.eclipse.emf.common.util.URI modelURI, org.eclipse.emf.common.util.URI metamodelURI, IResourceSetFactory resourceSetFactory, IResourceSetProcessor postLoadProcessor)
Load model based onURI
for model and metamodel.static Model
loadModel(org.eclipse.emf.common.util.URI modelURI, Metamodel metamodel, IResourceSetFactory resourceSetFactory, IResourceSetProcessor postLoadProcessor)
Load model based onURI
and metamodel.static void
saveMetamodel(Metamodel metamodel)
Save metamodel based onURI
.static void
saveModel(Model model, Map<String,Object> options)
Save model based onURI
.
-
-
-
Method Detail
-
loadMetamodel
public static Metamodel loadMetamodel(org.eclipse.emf.common.util.URI metamodelURI) throws IOException
Load metamodel based onURI
.- Throws:
IOException
-
loadMetamodel
public static Metamodel loadMetamodel(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Create metamodel from aResourceSet
.
-
loadMetamodel
public static Metamodel loadMetamodel(String fileName) throws IOException
Load metamodel based on file name.- Throws:
IOException
-
saveMetamodel
public static void saveMetamodel(Metamodel metamodel) throws IOException
Save metamodel based onURI
.- Throws:
IOException
-
loadModel
public static Model loadModel(org.eclipse.emf.common.util.URI modelURI, org.eclipse.emf.common.util.URI metamodelURI, IResourceSetFactory resourceSetFactory, IResourceSetProcessor postLoadProcessor) throws IOException
Load model based onURI
for model and metamodel.- Throws:
IOException
-
loadModel
public static Model loadModel(org.eclipse.emf.common.util.URI modelURI, Metamodel metamodel, IResourceSetFactory resourceSetFactory, IResourceSetProcessor postLoadProcessor) throws IOException
Load model based onURI
and metamodel.- Throws:
IOException
-
loadModel
public static Model loadModel(List<org.eclipse.emf.common.util.URI> modelURIs, Metamodel metamodel, IResourceSetFactory resourceSetFactory, IResourceSetProcessor postLoadProcessor) throws IOException
Load model based on a set ofURI
and metamodel.- Throws:
IOException
-
loadModel
public static Model loadModel(String fileName, Metamodel metamodel, IResourceSetFactory resourceSetFactory, IResourceSetProcessor postLoadProcessor) throws IOException
Load model based on file name and metamodel.- Throws:
IOException
-
saveModel
public static void saveModel(Model model, Map<String,Object> options) throws IOException
Save model based onURI
.- Throws:
IOException
-
-