Package jetbrains.mps.smodel.language
Class ConceptRegistry
- java.lang.Object
 - 
- jetbrains.mps.smodel.language.ConceptRegistry
 
 
- 
- All Implemented Interfaces:
 CoreComponent,LanguageRegistryListener
public class ConceptRegistry extends Object implements CoreComponent, LanguageRegistryListener
 
- 
- 
Constructor Summary
Constructors Constructor Description ConceptRegistry(LanguageRegistry languageRegistry) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidafterLanguagesLoaded(Iterable<LanguageRuntime> languages)voidbeforeLanguagesUnloaded(Iterable<LanguageRuntime> languages)voiddispose()BehaviorRegistrygetBehaviorRegistry()Deprecated.useSAbstractConceptgetConceptByName(String conceptName)Deprecated.ConceptDescriptorgetConceptDescriptor(SConceptId id)Looks upConceptDescriptorfor the given id.ConceptDescriptorgetConceptDescriptor(SAbstractConcept concept)Deprecated.It's odd to go from SAbstractConcept back to ConceptDescriptor.ConceptPresentationgetConceptProperties(SAbstractConcept concept)ConstraintsDescriptorgetConstraintsDescriptor(SAbstractConcept concept)DataTypeDescriptorgetDataTypeDescriptor(SDataTypeId id)static ConceptRegistrygetInstance()voidinit() 
 - 
 
- 
- 
Constructor Detail
- 
ConceptRegistry
public ConceptRegistry(@NotNull LanguageRegistry languageRegistry)
 
 - 
 
- 
Method Detail
- 
getInstance
public static ConceptRegistry getInstance()
 
- 
getBehaviorRegistry
public BehaviorRegistry getBehaviorRegistry()
Deprecated.use 
- 
init
public void init()
- Specified by:
 initin interfaceCoreComponent
 
- 
dispose
public void dispose()
- Specified by:
 disposein interfaceCoreComponent
 
- 
getConceptDescriptor
@NotNull @Deprecated public ConceptDescriptor getConceptDescriptor(@NotNull SAbstractConcept concept)
Deprecated.It's odd to go from SAbstractConcept back to ConceptDescriptor. It's MPS implementation of SConcept that deals with ConceptDescriptors to populate SAbstractConcept and client code shall not reverse this. * NOTE, THERE ARE NO USES left in MPS code, don't introduce a new one! We'll drop the method any time soon. * 
- 
getConceptDescriptor
@NotNull public ConceptDescriptor getConceptDescriptor(@NotNull SConceptId id)
Looks upConceptDescriptorfor the given id. If none found,IllegalConceptDescriptorinstance is returned, withIllegalConceptDescriptor.getId()equal to the one supplied.- Parameters:
 id- identity of a concept (generally, shall not use MetaIdFactory.INVALID_CONCEPT_ID)- Returns:
 - never 
null 
 
- 
getDataTypeDescriptor
@Nullable public DataTypeDescriptor getDataTypeDescriptor(@NotNull SDataTypeId id)
 
- 
getConceptProperties
public ConceptPresentation getConceptProperties(@NotNull SAbstractConcept concept)
 
- 
getConstraintsDescriptor
@NotNull public ConstraintsDescriptor getConstraintsDescriptor(@NotNull SAbstractConcept concept)
 
- 
getConceptByName
@Deprecated public SAbstractConcept getConceptByName(String conceptName)
Deprecated. 
- 
beforeLanguagesUnloaded
public void beforeLanguagesUnloaded(Iterable<LanguageRuntime> languages)
- Specified by:
 beforeLanguagesUnloadedin interfaceLanguageRegistryListener
 
- 
afterLanguagesLoaded
public void afterLanguagesLoaded(Iterable<LanguageRuntime> languages)
- Specified by:
 afterLanguagesLoadedin interfaceLanguageRegistryListener
 
 - 
 
 -