Class UMLModelLoader
java.lang.Object
org.eclipse.m2m.atl.engine.vm.ModelLoader
org.eclipse.m2m.atl.drivers.emf4atl.EMFModelLoader
org.eclipse.m2m.atl.drivers.uml24atl.UMLModelLoader
Loads UML models into a ResourceSet. Make sure to use the same
model loader for all EMF models used in a model transformation!
Use different model loaders for different threads.
-
Field Summary
Fields inherited from class org.eclipse.m2m.atl.drivers.emf4atl.EMFModelLoader
atlmm, bimm, bundle, encoding, mofURI, removeIDs, resourceSet, saveOptions, useIDs
Fields inherited from class org.eclipse.m2m.atl.engine.vm.ModelLoader
loadedModels
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ASMEMFModel
createASMEMFModel
(String name, org.eclipse.emf.ecore.resource.Resource extent, ASMModel metamodel, boolean isTarget) Creates a newASMEMFModel
.protected void
finalizeResource
(org.eclipse.emf.ecore.resource.Resource r) Finalizes r.protected void
Methods inherited from class org.eclipse.m2m.atl.drivers.emf4atl.EMFModelLoader
adaptMetamodel, finalize, getATL, getBuiltInMetaModel, getMOF, getResourceSet, loadModel, loadModel, newModel, newModel, realLoadModel, setParameter, unload
Methods inherited from class org.eclipse.m2m.atl.engine.vm.ModelLoader
addExtractor, addInjector, extract, inject, loadModel, save
-
Constructor Details
-
UMLModelLoader
public UMLModelLoader()UMLModelLoader constructor.
-
-
Method Details
-
createASMEMFModel
protected ASMEMFModel createASMEMFModel(String name, org.eclipse.emf.ecore.resource.Resource extent, ASMModel metamodel, boolean isTarget) Creates a newASMEMFModel
.- Overrides:
createASMEMFModel
in classEMFModelLoader
- Parameters:
name
- the model nameextent
- the resource extentmetamodel
- the metamodelisTarget
- true if the model is a target model- Returns:
- a new ASMEMFModel with this ModelLoader.
- See Also:
-
finalizeResource
protected void finalizeResource(org.eclipse.emf.ecore.resource.Resource r) Finalizes r. This implementation does nothing, but allows for overriding in subclasses.- Overrides:
finalizeResource
in classEMFModelLoader
- Parameters:
r
- TheResource
to finalize.- See Also:
-
realSave
- Overrides:
realSave
in classEMFModelLoader
- Throws:
IOException
- See Also:
-