Package org.jetbrains.mps.openapi.model
Interface SModelReference
- 
 public interface SModelReferenceRepresents a unique reference to a model, which remains valid across subsequent read and write actions.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description SModelIdgetModelId()Retrieves an identifier, which is unique within a module.StringgetModelName()The returned name of the model may include a stereotype, such as 'generator' or 'tests', separated by the '@' character, e.g.SModuleReferencegetModuleReference()Returns module reference when it is a part of this model reference and is available, or null otherwise.SModelNamegetName()SModelresolve(SRepository repo)Resolves the model from within the given repository
 
- 
- 
- 
Method Detail- 
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(), seeSModelName.getValue()
 
 - 
getName@NotNull SModelName getName() - Returns:
- name of the model, may be emptybut nevernull
 
 - 
getModuleReferenceSModuleReference 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.
 - 
resolveSModel resolve(SRepository repo) Resolves the model from within the given repository
 
- 
 
-