public class Persistency extends Object
Constructor and Description |
---|
Persistency() |
Modifier and Type | Method and Description |
---|---|
static Metamodel |
loadMetamodel(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Create metamodel from a
ResourceSet . |
static Metamodel |
loadMetamodel(String fileName)
Load metamodel based on file name.
|
static Metamodel |
loadMetamodel(org.eclipse.emf.common.util.URI metamodelURI)
Load metamodel based on
URI . |
static Model |
loadModel(List<org.eclipse.emf.common.util.URI> modelURIs,
Metamodel metamodel,
IResourceSetFactory resourceSetFactory,
IResourceSetProcessor postLoadProcessor)
Load model based on a set of
URI and metamodel. |
static Model |
loadModel(String fileName,
Metamodel metamodel,
IResourceSetFactory resourceSetFactory,
IResourceSetProcessor postLoadProcessor)
Load model based on file name and metamodel.
|
static Model |
loadModel(org.eclipse.emf.common.util.URI modelURI,
Metamodel metamodel,
IResourceSetFactory resourceSetFactory,
IResourceSetProcessor postLoadProcessor)
Load model based on
URI 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 on
URI for model and metamodel. |
static void |
saveMetamodel(Metamodel metamodel)
Save metamodel based on
URI . |
static void |
saveModel(Model model,
Map<String,Object> options)
Save model based on
URI . |
public static Metamodel loadMetamodel(org.eclipse.emf.common.util.URI metamodelURI) throws IOException
URI
.IOException
public static Metamodel loadMetamodel(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
ResourceSet
.public static Metamodel loadMetamodel(String fileName) throws IOException
IOException
public static void saveMetamodel(Metamodel metamodel) throws IOException
URI
.IOException
public static Model loadModel(org.eclipse.emf.common.util.URI modelURI, org.eclipse.emf.common.util.URI metamodelURI, IResourceSetFactory resourceSetFactory, IResourceSetProcessor postLoadProcessor) throws IOException
URI
for model and metamodel.IOException
public static Model loadModel(org.eclipse.emf.common.util.URI modelURI, Metamodel metamodel, IResourceSetFactory resourceSetFactory, IResourceSetProcessor postLoadProcessor) throws IOException
URI
and metamodel.IOException
public static Model loadModel(List<org.eclipse.emf.common.util.URI> modelURIs, Metamodel metamodel, IResourceSetFactory resourceSetFactory, IResourceSetProcessor postLoadProcessor) throws IOException
URI
and metamodel.IOException
public static Model loadModel(String fileName, Metamodel metamodel, IResourceSetFactory resourceSetFactory, IResourceSetProcessor postLoadProcessor) throws IOException
IOException
public static void saveModel(Model model, Map<String,Object> options) throws IOException
URI
.IOException
Copyright © 2019. All rights reserved.