Package org.palladiosimulator.pcm.uncertainty.variation.UncertaintyVariationModel.gen.pcm.adapter.resource
Class ModelResourceAbstraction
- java.lang.Object
-
- org.palladiosimulator.pcm.uncertainty.variation.UncertaintyVariationModel.gen.pcm.adapter.resource.ModelResourceAbstraction
-
- All Implemented Interfaces:
ResourceAbstraction
public class ModelResourceAbstraction extends Object implements ResourceAbstraction
ModelResourceAbstraction implements the Resource Abstraction Layer for models.
-
-
Constructor Summary
Constructors Constructor Description ModelResourceAbstraction()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EObject
load(URI modelUri)
loads and returns the model corresponding to the modelUrivoid
save(EObject rootElement)
saved the modelvoid
updateRegisteredModels(List<String> knownModelTypes)
updates the registered models with a list of new models
-
-
-
Method Detail
-
updateRegisteredModels
public void updateRegisteredModels(List<String> knownModelTypes)
Description copied from interface:ResourceAbstraction
updates the registered models with a list of new models- Specified by:
updateRegisteredModels
in interfaceResourceAbstraction
- Parameters:
knownModelTypes
- the new model that should be registered
-
load
public EObject load(URI modelUri)
Description copied from interface:ResourceAbstraction
loads and returns the model corresponding to the modelUri- Specified by:
load
in interfaceResourceAbstraction
- Parameters:
modelUri
- the uri of the model- Returns:
- the loaded model
-
save
public void save(EObject rootElement) throws IOException
Description copied from interface:ResourceAbstraction
saved the model- Specified by:
save
in interfaceResourceAbstraction
- Parameters:
rootElement
- the model to save- Throws:
IOException
- if the writing of the model fails
-
-