Class ASMModel
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
- Direct Known Subclasses:
ASMEMFModel,ASMHashModel
An ASMModel represents a model.
This is an abstraction layer for concrete model handlers such as EMF or MDR.
At the present time, there is no separate class for metamodels.
Therefore some of the methods of ASMModel only apply to metamodels.
TODO (for this class and ASMModelElement): separate metamodel-specific in
ASMMetamodel and rename some methods.
-
Field Summary
FieldsFields inherited from class org.eclipse.m2m.atl.engine.vm.nativelib.ASMNativeObject
nativeImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ASMModelElementfindModelElement(String name) Finds a Classifier in a Metamodel.getElementsByType(String typeName) abstract SetgetName()booleanReturns whether this model allows references to other models (inter-model references).booleanisTarget()newModelElement(String typeName) abstract ASMModelElementnewModelElement(StackFrame frame, String typeName) voidsetCheckSameModel(boolean checkSameModel) Sets whether this model allows references to other models (inter-model references).voidsetIsTarget(boolean isTarget) toString()Methods 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
-
myType
-
-
Constructor Details
-
ASMModel
-
-
Method Details
-
getModelLoader
-
toString
-
getElementsByType
-
getElementsByType
-
findModelElement
Finds a Classifier in a Metamodel. -
newModelElement
-
newModelElement
-
newModelElement
-
getName
-
getMetamodel
-
isTarget
public boolean isTarget() -
setIsTarget
public void setIsTarget(boolean isTarget) -
isCheckSameModel
public boolean isCheckSameModel()Returns whether this model allows references to other models (inter-model references).- Returns:
- Whether this model allows references to other models (inter-model references).
-
setCheckSameModel
public void setCheckSameModel(boolean checkSameModel) Sets whether this model allows references to other models (inter-model references).- Parameters:
checkSameModel- whether this model allows references to other models (inter-model references).
-