Class ASMModel

Direct Known Subclasses:
ASMEMFModel, ASMHashModel

public abstract class ASMModel extends ASMOclAny
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 Details

  • Constructor Details

  • Method Details

    • getModelLoader

      public ModelLoader getModelLoader()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getElementsByType

      public Set getElementsByType(String typeName)
    • getElementsByType

      public abstract Set getElementsByType(ASMModelElement type)
    • findModelElement

      public abstract ASMModelElement findModelElement(String name)
      Finds a Classifier in a Metamodel.
    • newModelElement

      public ASMModelElement newModelElement(String typeName)
    • newModelElement

      public ASMModelElement newModelElement(StackFrame frame, String typeName)
    • newModelElement

      public abstract ASMModelElement newModelElement(ASMModelElement type)
    • getName

      public String getName()
    • getMetamodel

      public ASMModel 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).