|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
public class ASMEMFModel
The ASMModel specialization for EMF.
| Field Summary | |
|---|---|
protected org.eclipse.emf.ecore.resource.Resource |
extent
These meta model definition shall be redefined in all sub-classes of ASMEMFModel. |
protected java.util.Map |
modelElements
Lookup table of ASMModelElement by EObject. |
protected static ASMEMFModel |
mofmm
These meta model definition shall be redefined in all sub-classes of ASMEMFModel. |
protected java.util.Set |
referencedExtents
These meta model definition shall be redefined in all sub-classes of ASMEMFModel. |
protected java.lang.String |
resolveURI
If 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.ASMModel |
|---|
myType |
| Fields inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMNativeObject |
|---|
nativeImpl |
| Constructor Summary | |
|---|---|
protected |
ASMEMFModel(java.lang.String name,
org.eclipse.emf.ecore.resource.Resource extent,
ASMEMFModel metamodel,
boolean isTarget,
ModelLoader ml)
Creates a new ASMEMFModel. |
| Method Summary | |
|---|---|
protected void |
finalize()
|
ASMModelElement |
findModelElement(java.lang.String name)
Finds a Classifier in a Metamodel. |
java.util.Set |
getAllElementsByType(ASMModelElement type)
Returns The set of ASMModelElements that are instances of type and are contained in this model or any referenced meta-model. |
java.util.Set |
getAllElementsByType(java.lang.String typeName)
Returns The set of ASMModelElements that are instances of type and are contained in this model or any referenced meta-model. |
ASMModelElement |
getASMModelElement(org.eclipse.emf.ecore.EObject object)
Returns the ASMModelElement corresponding to the given EObject. |
java.util.Set |
getElementsByType(ASMModelElement type)
Returns The set of ASMModelElements that are instances of type and are contained in this model. |
org.eclipse.emf.ecore.resource.Resource |
getExtent()
Returns the EMF resource containing the model. |
static ASMModel |
getMOF()
Returns the meta-meta-model. |
java.util.Set |
getReferencedExtents()
Returns The set of referenced Resources. |
int |
hashCode()
|
boolean |
isCheckSameModel()
Returns whether this model allows references to other models (inter-model references). |
ASMModelElement |
newModelElement(ASMModelElement type)
|
void |
setCheckSameModel(boolean checkSameModel)
Sets whether this model allows references to other models (inter-model references). |
| Methods inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel |
|---|
getElementsByType, getMetamodel, getModelLoader, getName, isTarget, newModelElement, newModelElement, setIsTarget, toString |
| Methods inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny |
|---|
asBag, asSequence, asSet, check, debug, findOperation, findOperation, get, getHelper, getOclAnyType, getType, invoke, invoke, invokeSuper, isHelper, oclIsKindOf, oclIsTypeOf, oclIsUndefined, oclType, operatorEQ, operatorNE, output, refGetValue, refImmediateComposite, refImmediateComposite, refInvokeOperation, refSetValue, set, setType, toString |
| Methods inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMNativeObject |
|---|
getNativeImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static ASMEMFModel mofmm
protected org.eclipse.emf.ecore.resource.Resource extent
protected java.util.Set referencedExtents
protected java.lang.String resolveURI
protected java.util.Map modelElements
ASMModelElement by EObject.
| Constructor Detail |
|---|
protected ASMEMFModel(java.lang.String name,
org.eclipse.emf.ecore.resource.Resource extent,
ASMEMFModel metamodel,
boolean isTarget,
ModelLoader ml)
ASMEMFModel.
name - the model nameextent - the resource extentmetamodel - the metamodelisTarget - true if the model is a target modelml - the model loader| Method Detail |
|---|
public static ASMModel getMOF()
public ASMModelElement getASMModelElement(org.eclipse.emf.ecore.EObject object)
EObject.
object - the given EObject
ASMModelElementpublic ASMModelElement findModelElement(java.lang.String name)
findModelElement in class ASMModelASMModel.findModelElement(java.lang.String)public java.util.Set getElementsByType(ASMModelElement type)
getElementsByType in class ASMModeltype - The type of element to search for.
ASMModelElementpublic java.util.Set getAllElementsByType(java.lang.String typeName)
typeName - The type of element to search for.
ASMModelElementpublic java.util.Set getAllElementsByType(ASMModelElement type)
type - The type of element to search for.
ASMModelElementpublic ASMModelElement newModelElement(ASMModelElement type)
newModelElement in class ASMModelASMModel.newModelElement(org.eclipse.m2m.atl.engine.vm.nativelib.ASMModelElement)public org.eclipse.emf.ecore.resource.Resource getExtent()
public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean isCheckSameModel()
public void setCheckSameModel(boolean checkSameModel)
checkSameModel - whether this model allows references to other models (inter-model references).public java.util.Set getReferencedExtents()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.ThrowableObject.finalize()
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||