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

java.lang.Object
  extended by org.eclipse.m2m.atl.engine.vm.nativelib.ASMNativeObject
      extended by org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny
          extended by org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel
              extended by org.eclipse.m2m.atl.drivers.uml24atl.ASMUMLModel

public class ASMUMLModel
extends ASMModel


Field Summary
protected  java.lang.String resolveURI
           
protected  boolean unload
           
protected  java.util.Set unregister
           
 
Fields inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel
myType
 
Fields inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny
logger
 
Fields inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMNativeObject
nativeImpl
 
Method Summary
 void addDelayedInvocation(Invocation invocation)
           
 void applyDelayedInvocations()
           
static ASMUMLModel createMOF(ModelLoader ml)
           
 void dispose()
           
 boolean equals(java.lang.Object o)
           
 void finalize()
           
 ASMModelElement findModelElement(java.lang.String name)
          Finds a Classifier in a Metamodel.
 ASMModelElement getASMModelElement(org.eclipse.emf.ecore.EObject object)
           
 java.util.Set getElementsByType(ASMModelElement type)
           
 org.eclipse.emf.ecore.resource.Resource getExtent()
           
 int getLastStereotypeMethod(java.lang.String opName, java.util.List delayedInvocations)
           
static ASMModel getMOF()
           
 java.util.Set getReferencedExtents()
           
 boolean isCheckSameModel()
           
static ASMUMLModel loadASMUMLModel(java.lang.String name, ASMUMLModel metamodel, java.io.InputStream in, ModelLoader ml)
           
static ASMUMLModel loadASMUMLModel(java.lang.String name, ASMUMLModel metamodel, org.eclipse.emf.ecore.resource.Resource extent, ModelLoader ml)
          Simple Resource wrapping factory.
static ASMUMLModel loadASMUMLModel(java.lang.String name, ASMUMLModel metamodel, java.lang.String url, ModelLoader ml)
           
static ASMUMLModel loadASMUMLModel(java.lang.String name, ASMUMLModel metamodel, org.eclipse.emf.common.util.URI uri, ModelLoader ml)
           
static ASMUMLModel loadASMUMLModel(java.lang.String name, ASMUMLModel metamodel, java.net.URL url, ModelLoader ml)
           
static ASMUMLModel newASMUMLModel(java.lang.String name, ASMUMLModel metamodel, ModelLoader ml)
          Creates a new ASMEMFModel.
static ASMUMLModel newASMUMLModel(java.lang.String name, java.lang.String uri, ASMUMLModel metamodel, ModelLoader ml)
          Creates a new ASMEMFModel.
 ASMModelElement newModelElement(ASMModelElement type)
           
 void setCheckSameModel(boolean checkSameModel)
           
 
Methods inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel
addSubModel, get, getElementsByType, getMetamodel, getModelLoader, getName, getSubModels, isTarget, newModelElement, newModelElement, save, set, setIsTarget, toString
 
Methods inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny
asBag, asSequence, asSet, check, debug, findOperation, findOperation, getHelper, getOclAnyType, getType, invoke, invoke, invokeSuper, isHelper, oclIsKindOf, oclIsTypeOf, oclIsUndefined, oclType, operatorEQ, operatorNE, output, refGetValue, refImmediateComposite, refImmediateComposite, refInvokeOperation, refSetValue, setType, toString
 
Methods inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMNativeObject
getNativeImpl
 
Methods inherited from class java.lang.Object
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

unload

protected boolean unload

unregister

protected java.util.Set unregister

resolveURI

protected java.lang.String resolveURI
Method Detail

getMOF

public static ASMModel getMOF()

getASMModelElement

public ASMModelElement getASMModelElement(org.eclipse.emf.ecore.EObject object)

findModelElement

public ASMModelElement findModelElement(java.lang.String name)
Description copied from class: ASMModel
Finds a Classifier in a Metamodel.

Specified by:
findModelElement in class ASMModel

getElementsByType

public java.util.Set getElementsByType(ASMModelElement type)
Specified by:
getElementsByType in class ASMModel
Parameters:
type - The type of element to search for.
Returns:
The set of ASMModelElements that are instances of type.
See Also:
ASMModelElement

newModelElement

public ASMModelElement newModelElement(ASMModelElement type)
Specified by:
newModelElement in class ASMModel

loadASMUMLModel

public static ASMUMLModel loadASMUMLModel(java.lang.String name,
                                          ASMUMLModel metamodel,
                                          org.eclipse.emf.ecore.resource.Resource extent,
                                          ModelLoader ml)
                                   throws java.lang.Exception
Simple Resource wrapping factory.

Parameters:
ml - ModelLoader used to load the model if available, null otherwise.
Throws:
java.lang.Exception

dispose

public void dispose()

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object

newASMUMLModel

public static ASMUMLModel newASMUMLModel(java.lang.String name,
                                         ASMUMLModel metamodel,
                                         ModelLoader ml)
                                  throws java.lang.Exception
Creates a new ASMEMFModel. Do not use this method for models that require a special registered factory (e.g. uml2).

Parameters:
name - The model name. Also used as EMF model URI.
metamodel -
ml -
Returns:
the new ASMUMLModel
Throws:
java.lang.Exception

newASMUMLModel

public static ASMUMLModel newASMUMLModel(java.lang.String name,
                                         java.lang.String uri,
                                         ASMUMLModel metamodel,
                                         ModelLoader ml)
                                  throws java.lang.Exception
Creates a new ASMEMFModel. author : Dennis Wagelaar

Parameters:
name - The model name. Not used by EMF.
uri - The model URI. EMF uses this to determine the correct factory.
metamodel -
ml -
Returns:
the new ASMUMLModel
Throws:
java.lang.Exception

loadASMUMLModel

public static ASMUMLModel loadASMUMLModel(java.lang.String name,
                                          ASMUMLModel metamodel,
                                          java.lang.String url,
                                          ModelLoader ml)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

loadASMUMLModel

public static ASMUMLModel loadASMUMLModel(java.lang.String name,
                                          ASMUMLModel metamodel,
                                          java.net.URL url,
                                          ModelLoader ml)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

loadASMUMLModel

public static ASMUMLModel loadASMUMLModel(java.lang.String name,
                                          ASMUMLModel metamodel,
                                          org.eclipse.emf.common.util.URI uri,
                                          ModelLoader ml)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

loadASMUMLModel

public static ASMUMLModel loadASMUMLModel(java.lang.String name,
                                          ASMUMLModel metamodel,
                                          java.io.InputStream in,
                                          ModelLoader ml)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

createMOF

public static ASMUMLModel createMOF(ModelLoader ml)

getExtent

public org.eclipse.emf.ecore.resource.Resource getExtent()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

isCheckSameModel

public boolean isCheckSameModel()

setCheckSameModel

public void setCheckSameModel(boolean checkSameModel)

getReferencedExtents

public java.util.Set getReferencedExtents()
Returns:
The set of referenced Resources.

getLastStereotypeMethod

public int getLastStereotypeMethod(java.lang.String opName,
                                   java.util.List delayedInvocations)

addDelayedInvocation

public void addDelayedInvocation(Invocation invocation)

applyDelayedInvocations

public void applyDelayedInvocations()

Copyright 2007 IBM Corporation and others.
All Rights Reserved.