Package jetbrains.mps.smodel
Class SModelRepository
- java.lang.Object
 - 
- jetbrains.mps.smodel.SModelRepository
 
 
- 
- All Implemented Interfaces:
 CoreComponent
public class SModelRepository extends Object implements CoreComponent
 
- 
- 
Constructor Summary
Constructors Constructor Description SModelRepository(MPSModuleRepository moduleRepository) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddispose()static SModelRepositorygetInstance()Deprecated.global collection of SModels doesn't allow us to move forward.SModelgetModelDescriptor(String modelName)SModelgetModelDescriptor(SModelId id)Deprecated.this method makes sense forglobally uniquemodel id only, but doesn't manifest this contract.SModelgetModelDescriptor(SModelReference modelReference)Deprecated.this method makes sense forglobally uniquemodel id only, but doesn't manifest this contract.List<SModel>getModelDescriptors()List<SModel>getModelDescriptors(SModule module)List<SModel>getModelDescriptorsByModelName(String modelName)Deprecated.voidinit()voidsaveAll()Requires write access to model 
 - 
 
- 
- 
Constructor Detail
- 
SModelRepository
public SModelRepository(@NotNull MPSModuleRepository moduleRepository)
 
 - 
 
- 
Method Detail
- 
getInstance
@Deprecated public static SModelRepository getInstance()
Deprecated.global collection of SModels doesn't allow us to move forward. Do not use. 
- 
init
public void init()
- Specified by:
 initin interfaceCoreComponent
 
- 
dispose
public void dispose()
- Specified by:
 disposein interfaceCoreComponent
 
- 
getModelDescriptor
@Deprecated @Nullable public SModel getModelDescriptor(@NotNull SModelReference modelReference)
Deprecated.this method makes sense forglobally uniquemodel id only, but doesn't manifest this contract. UseSModelReference.resolve(SRepository)instead 
- 
getModelDescriptor
@Deprecated public SModel getModelDescriptor(SModelId id)
Deprecated.this method makes sense forglobally uniquemodel id only, but doesn't manifest this contract. UseSModelReference.resolve(SRepository)instead 
- 
getModelDescriptorsByModelName
@Deprecated public List<SModel> getModelDescriptorsByModelName(String modelName)
Deprecated. 
- 
saveAll
public void saveAll()
Requires write access to model 
 - 
 
 -