public abstract class EMFRepositoryFacade extends Object implements RepositoryFacade
RepositoryFacade
instance that should be extended by any repository wishing to load EMF models.Modifier and Type | Field and Description |
---|---|
protected List<Resource> |
model
Stores the actual loaded model.
|
protected ModelAccessFacade |
modelFacade |
protected ResourceSet |
resourceSet
Stores the resources (i.e.
|
Constructor and Description |
---|
EMFRepositoryFacade() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
abstract void |
close()
Ignore.
|
abstract ResourceSet |
createNewResourceSet()
Creates and returns a new resource suitable for loading models into EMF.
|
protected Map<String,Object> |
getLoadOptions()
Gets the current load options.
|
void |
open() |
void |
readModel(InputStream[] stream,
String[] modelUri,
String[] moduleSearchPaths) |
void |
readModel(String uri)
Reads the model with the given
uri . |
void |
readModel(String[] modelUris,
String[] moduleSearchPaths) |
void |
writeModel(Object modelIn,
String location,
String version) |
void |
writeModel(Object modelIn,
String location,
String version,
String encoding) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getModel
protected ResourceSet resourceSet
protected ModelAccessFacade modelFacade
public EMFRepositoryFacade()
protected Map<String,Object> getLoadOptions()
public void readModel(String uri)
uri
.uri
- the URI to the modelpublic void open()
open
in interface RepositoryFacade
RepositoryFacade.open()
public abstract ResourceSet createNewResourceSet()
public abstract void close()
close
in interface RepositoryFacade
RepositoryFacade.close()
public void readModel(String[] modelUris, String[] moduleSearchPaths)
readModel
in interface RepositoryFacade
RepositoryFacade.readModel(String[], String[])
public void readModel(InputStream[] stream, String[] modelUri, String[] moduleSearchPaths)
readModel
in interface RepositoryFacade
RepositoryFacade.readModel(java.io.InputStream[], String[], String[])
public void writeModel(Object modelIn, String location, String version, String encoding)
writeModel
in interface RepositoryFacade
RepositoryFacade.writeModel(Object, String, String, String)
public void writeModel(Object modelIn, String location, String version)
writeModel
in interface RepositoryFacade
RepositoryFacade.writeModel(Object, String, String)
public void clear()
clear
in interface RepositoryFacade
RepositoryFacade.clear()
Copyright © 2003–2014 AndroMDA.org. All rights reserved.