Class ASMEMFModel
java.lang.Object
org.eclipse.m2m.atl.engine.vm.nativelib.ASMNativeObject
org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny
org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel
org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModel
- Direct Known Subclasses:
ASMUMLModel
The ASMModel specialization for EMF.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.eclipse.emf.ecore.resource.ResourceThese meta model definition shall be redefined in all sub-classes of ASMEMFModel.protected MapLookup table ofASMModelElementbyEObject.protected static ASMEMFModelThese meta model definition shall be redefined in all sub-classes of ASMEMFModel.protected SetThese meta model definition shall be redefined in all sub-classes of ASMEMFModel.protected StringIf not null, model could not yet be loaded from URI and needs to be loaded later from this URI.Fields inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMNativeObject
nativeImpl -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedASMEMFModel(String name, org.eclipse.emf.ecore.resource.Resource extent, ASMEMFModel metamodel, boolean isTarget, ModelLoader ml) Creates a newASMEMFModel. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinalize()findModelElement(String name) Finds a Classifier in a Metamodel.getAllElementsByType(String typeName) Returns The set of ASMModelElements that are instances of type and are contained in this model or any referenced meta-model.Returns The set of ASMModelElements that are instances of type and are contained in this model or any referenced meta-model.getASMModelElement(org.eclipse.emf.ecore.EObject object) Returns the ASMModelElement corresponding to the givenEObject.Returns The set of ASMModelElements that are instances of type and are contained in this model.org.eclipse.emf.ecore.resource.ResourceReturns the EMF resource containing the model.static ASMModelgetMOF()Returns the meta-meta-model.Returns The set of referenced Resources.inthashCode()Methods inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel
getElementsByType, getMetamodel, getModelLoader, getName, isCheckSameModel, isTarget, newModelElement, newModelElement, setCheckSameModel, setIsTarget, toStringMethods inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny
asBag, asSequence, asSet, check, debug, findOperation, findOperation, get, getHelper, getNamedTargetFromSource, getOclAnyType, getType, invoke, invoke, invokeSuper, isHelper, oclIsKindOf, oclIsTypeOf, oclIsUndefined, oclType, operatorEQ, operatorNE, output, refGetValue, refImmediateComposite, refImmediateComposite, refInvokeOperation, refSetValue, refUnsetValue, set, setType, toString, unsetMethods inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMNativeObject
getNativeImpl
-
Field Details
-
mofmm
These meta model definition shall be redefined in all sub-classes of ASMEMFModel. -
extent
protected org.eclipse.emf.ecore.resource.Resource extentThese meta model definition shall be redefined in all sub-classes of ASMEMFModel. -
referencedExtents
These meta model definition shall be redefined in all sub-classes of ASMEMFModel. -
resolveURI
If not null, model could not yet be loaded from URI and needs to be loaded later from this URI. -
modelElements
Lookup table ofASMModelElementbyEObject.
-
-
Constructor Details
-
ASMEMFModel
protected ASMEMFModel(String name, org.eclipse.emf.ecore.resource.Resource extent, ASMEMFModel metamodel, boolean isTarget, ModelLoader ml) Creates a newASMEMFModel.- Parameters:
name- the model nameextent- the resource extentmetamodel- the metamodelisTarget- true if the model is a target modelml- the model loader
-
-
Method Details
-
getMOF
Returns the meta-meta-model.- Returns:
- the meta-meta-model.
-
getASMModelElement
Returns the ASMModelElement corresponding to the givenEObject.- Parameters:
object- the givenEObject- Returns:
- the
ASMModelElement
-
findModelElement
Finds a Classifier in a Metamodel.- Specified by:
findModelElementin classASMModel- See Also:
-
getElementsByType
Returns The set of ASMModelElements that are instances of type and are contained in this model.- Specified by:
getElementsByTypein classASMModel- Parameters:
type- The type of element to search for.- Returns:
- The set of ASMModelElements that are instances of type.
- See Also:
-
getAllElementsByType
Returns The set of ASMModelElements that are instances of type and are contained in this model or any referenced meta-model.- Parameters:
typeName- The type of element to search for.- Returns:
- The set of ASMModelElements that are instances of type.
- See Also:
-
getAllElementsByType
Returns The set of ASMModelElements that are instances of type and are contained in this model or any referenced meta-model.- Parameters:
type- The type of element to search for.- Returns:
- The set of ASMModelElements that are instances of type.
- See Also:
-
newModelElement
- Specified by:
newModelElementin classASMModel- See Also:
-
getExtent
public org.eclipse.emf.ecore.resource.Resource getExtent()Returns the EMF resource containing the model.- Returns:
- The EMF resource containing the model
-
hashCode
public int hashCode() -
getReferencedExtents
Returns The set of referenced Resources.- Returns:
- The set of referenced Resources
-
finalize
-