org.eclipse.m2m.atl.drivers.uml24atl
Class AtlUML2ModelHandler

java.lang.Object
  extended by org.eclipse.m2m.atl.engine.AtlModelHandler
      extended by org.eclipse.m2m.atl.engine.AtlEMFModelHandler
          extended by org.eclipse.m2m.atl.drivers.uml24atl.AtlUML2ModelHandler

public class AtlUML2ModelHandler
extends AtlEMFModelHandler


Field Summary
 
Fields inherited from class org.eclipse.m2m.atl.engine.AtlEMFModelHandler
atlmm, ml
 
Fields inherited from class org.eclipse.m2m.atl.engine.AtlModelHandler
AMH_EMF, logger
 
Constructor Summary
AtlUML2ModelHandler()
           
 
Method Summary
 void disposeOfModel(ASMModel model)
          Performs necessary clean-up such as freeing memory.
 ASMModel getBuiltInMetaModel(java.lang.String name)
           
 ASMModel getMof()
           
 boolean isHandling(ASMModel model)
           
 ASMModel loadModel(java.lang.String name, ASMModel metamodel, java.io.InputStream in)
           
 ASMModel loadModel(java.lang.String name, ASMModel metamodel, java.lang.String uri)
           
 ASMModel loadModel(java.lang.String name, ASMModel metamodel, org.eclipse.emf.common.util.URI uri)
           
 ASMModel newModel(java.lang.String name, ASMModel metamodel)
          Creates a new ASMModel.
 ASMModel newModel(java.lang.String name, java.lang.String uri, ASMModel metamodel)
          Creates a new ASMModel.
 void saveModel(ASMModel model, java.io.OutputStream out)
           
 void saveModel(ASMModel model, java.lang.String uri)
           
 void saveModel(ASMModel model, java.lang.String fileName, org.eclipse.core.resources.IProject project)
           
protected  void saveModel(ASMModel model, org.eclipse.emf.common.util.URI uri, java.io.OutputStream out)
           
 
Methods inherited from class org.eclipse.m2m.atl.engine.AtlEMFModelHandler
getAtl, getResourceSet, saveModel, saveModel
 
Methods inherited from class org.eclipse.m2m.atl.engine.AtlModelHandler
getDefault, getHandler, getHandlerName, getModelHandlers, registerDefaultHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtlUML2ModelHandler

public AtlUML2ModelHandler()
Method Detail

saveModel

public void saveModel(ASMModel model,
                      java.lang.String fileName,
                      org.eclipse.core.resources.IProject project)
Overrides:
saveModel in class AtlEMFModelHandler

saveModel

public void saveModel(ASMModel model,
                      java.lang.String uri)
Overrides:
saveModel in class AtlEMFModelHandler

saveModel

public void saveModel(ASMModel model,
                      java.io.OutputStream out)
Overrides:
saveModel in class AtlEMFModelHandler

saveModel

protected void saveModel(ASMModel model,
                         org.eclipse.emf.common.util.URI uri,
                         java.io.OutputStream out)
Overrides:
saveModel in class AtlEMFModelHandler

getMof

public ASMModel getMof()
Overrides:
getMof in class AtlEMFModelHandler

loadModel

public ASMModel loadModel(java.lang.String name,
                          ASMModel metamodel,
                          java.io.InputStream in)
Overrides:
loadModel in class AtlEMFModelHandler

newModel

public ASMModel newModel(java.lang.String name,
                         ASMModel metamodel)
Description copied from class: AtlModelHandler
Creates a new ASMModel. Only use this method if the model URI is not known.

Overrides:
newModel in class AtlEMFModelHandler
Parameters:
name - The model name.
See Also:
ASMUMLModel.newASMUMLModel(String, ASMUMLModel, ModelLoader)

newModel

public ASMModel newModel(java.lang.String name,
                         java.lang.String uri,
                         ASMModel metamodel)
Description copied from class: AtlModelHandler
Creates a new ASMModel. Use this method whenever the model URI is known.

Overrides:
newModel in class AtlEMFModelHandler
Parameters:
name - The model name.
uri - The model uri.
See Also:
ASMUMLModel.newASMUMLModel(String, String, ASMUMLModel, ModelLoader)

getBuiltInMetaModel

public ASMModel getBuiltInMetaModel(java.lang.String name)
Overrides:
getBuiltInMetaModel in class AtlEMFModelHandler

isHandling

public boolean isHandling(ASMModel model)
Overrides:
isHandling in class AtlEMFModelHandler

disposeOfModel

public void disposeOfModel(ASMModel model)
Description copied from class: AtlModelHandler
Performs necessary clean-up such as freeing memory. It should be redefined by any AtlModelHandler requiring specific clean-upon actions to be performed. This method should be called once the ASMModel is not needed any more.

Overrides:
disposeOfModel in class AtlEMFModelHandler

loadModel

public ASMModel loadModel(java.lang.String name,
                          ASMModel metamodel,
                          java.lang.String uri)
Overrides:
loadModel in class AtlEMFModelHandler

loadModel

public ASMModel loadModel(java.lang.String name,
                          ASMModel metamodel,
                          org.eclipse.emf.common.util.URI uri)
Overrides:
loadModel in class AtlEMFModelHandler

Copyright 2007 IBM Corporation and others.
All Rights Reserved.