|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.m2m.atl.core.ui.vm.asm.ASMModelWrapper
public class ASMModelWrapper
The RegularVM adaptation of the IModel
, IReferenceModel
.
Constructor Summary | |
---|---|
ASMModelWrapper(ASMModel asmModel,
ModelLoader modelLoader)
Creates a new ASMModelWrapper , with the given ASMModel . |
|
ASMModelWrapper(ASMModelWrapper referenceModel,
ASMFactory modelFactory,
ModelLoader modelLoader,
java.lang.String modelName,
java.lang.String path,
boolean newModel)
Creates a new ASMModelWrapper . |
Method Summary | |
---|---|
ASMModel |
getAsmModel()
Returns the inner ASMModel . |
java.util.Set<? extends java.lang.Object> |
getElementsByType(java.lang.Object metaElement)
Deprecated. unused in this implementation |
java.lang.Object |
getMetaElementByName(java.lang.String name)
Deprecated. unused in this implementation |
ASMFactory |
getModelFactory()
Returns the ModelFactory used to create the current model. |
ModelLoader |
getModelLoader()
Returns the model loader that created the inner ASMModel . |
java.lang.String |
getName()
Returns the inner model name or <unnamed>. |
IReferenceModel |
getReferenceModel()
Returns the IReferenceModel (i.e. the metamodel). |
boolean |
isModelOf(java.lang.Object object)
Deprecated. unused in this implementation |
boolean |
isTarget()
Defines if the model is readonly or not. |
java.lang.Object |
newElement(java.lang.Object metaElement)
Deprecated. unused in this implementation |
void |
setAsmModel(ASMModel asmModel)
Sets the inner ASMModel . |
void |
setIsTarget(boolean value)
Sets if the model is readonly or not. |
void |
setReferenceModel(ASMModelWrapper referenceModel)
Sets the metamodel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ASMModelWrapper(ASMModelWrapper referenceModel, ASMFactory modelFactory, ModelLoader modelLoader, java.lang.String modelName, java.lang.String path, boolean newModel)
ASMModelWrapper
.
referenceModel
- the ASMModelWrapper
metamodelmodelFactory
- the model loader creating this model.modelLoader
- the model loader creating the wrapped model.modelName
- the model namepath
- the model path (injection path for an existing one, extraction path for a new one)newModel
- true if the model is a new one (output model)public ASMModelWrapper(ASMModel asmModel, ModelLoader modelLoader)
ASMModelWrapper
, with the given ASMModel
. This constructor is used to
create metametamodels.
asmModel
- the ASMModel
modelLoader
- the ModelLoader
Method Detail |
---|
public IReferenceModel getReferenceModel()
IReferenceModel
(i.e. the metamodel).
getReferenceModel
in interface IModel
IReferenceModel
IModel.getReferenceModel()
public void setReferenceModel(ASMModelWrapper referenceModel)
referenceModel
- The metamodel to set.public ModelLoader getModelLoader()
ASMModel
.
public ASMModel getAsmModel()
ASMModel
.
ASMModel
.public void setAsmModel(ASMModel asmModel)
ASMModel
.
asmModel
- The inner ASMModel
to set.public java.lang.String getName()
public boolean isTarget()
isTarget
in interface IModel
IModel.isTarget()
public void setIsTarget(boolean value)
setIsTarget
in interface IModel
value
- true if the model allows writingIModel.setIsTarget(boolean)
public java.util.Set<? extends java.lang.Object> getElementsByType(java.lang.Object metaElement)
Set
of the elements matching the given type.
getElementsByType
in interface IModel
metaElement
- a metatype
Set
of the elements matching the given typeIModel.getElementsByType(java.lang.Object)
public java.lang.Object newElement(java.lang.Object metaElement)
newElement
in interface IModel
metaElement
- the new element metatype
IModel.newElement(java.lang.Object)
public java.lang.Object getMetaElementByName(java.lang.String name)
getMetaElementByName
in interface IReferenceModel
name
- the given name
IReferenceModel.getMetaElementByName(java.lang.String)
public boolean isModelOf(java.lang.Object object)
isModelOf
in interface IModel
object
- the model element
IModel.isModelOf(java.lang.Object)
public ASMFactory getModelFactory()
getModelFactory
in interface IModel
IModel.getModelFactory()
|
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 |