Interface SModelReference


  • public interface SModelReference
    Represents a unique reference to a model, which remains valid across subsequent read and write actions.
    • Method Detail

      • getModelId

        @NotNull
        SModelId getModelId()
        Retrieves an identifier, which is unique within a module.
      • getModelName

        @NotNull
        String getModelName()
        The returned name of the model may include a stereotype, such as 'generator' or 'tests', separated by the '@' character, e.g. jetbrains.mps.sample.generator.main@generator
        Returns:
        equivalent of getName().getValue(), see SModelName.getValue()
      • getModuleReference

        @Nullable
        SModuleReference getModuleReference()
        Returns module reference when it is a part of this model reference and is available, or null otherwise. Globally unique SModelIds do not require module references.
      • resolve

        SModel resolve​(SRepository repo)
        Resolves the model from within the given repository