Class IllegalConceptDescriptor
- java.lang.Object
 - 
- jetbrains.mps.smodel.runtime.illegal.IllegalConceptDescriptor
 
 
- 
- All Implemented Interfaces:
 ConceptDescriptor,NamedElementDescriptor
public class IllegalConceptDescriptor extends Object implements ConceptDescriptor
 
- 
- 
Constructor Summary
Constructors Constructor Description IllegalConceptDescriptor(SConceptId concept)Covers the case when attempt to find a concept by its known id failed.IllegalConceptDescriptor(SConceptId concept, String conceptQualifiedName)General case when we know name of the concept being looked up 
- 
Method Summary
 
 - 
 
- 
- 
Constructor Detail
- 
IllegalConceptDescriptor
public IllegalConceptDescriptor(@NotNull SConceptId concept)
Covers the case when attempt to find a concept by its known id failed. Generally shall not faceMetaIdFactory.INVALID_CONCEPT_ID, although tolerates the value (getConceptFqName()gives different name in this case).- Parameters:
 concept-
 
- 
IllegalConceptDescriptor
public IllegalConceptDescriptor(@NotNull SConceptId concept, @NotNull String conceptQualifiedName)
General case when we know name of the concept being looked up 
 - 
 
- 
Method Detail
- 
getId
@NotNull public SConceptId getId()
- Specified by:
 getIdin interfaceConceptDescriptor
 
- 
getConceptFqName
public String getConceptFqName()
- Specified by:
 getConceptFqNamein interfaceConceptDescriptor
 
- 
isInterfaceConcept
public boolean isInterfaceConcept()
- Specified by:
 isInterfaceConceptin interfaceConceptDescriptor
 
- 
getReferenceDescriptors
public Collection<ReferenceDescriptor> getReferenceDescriptors()
- Specified by:
 getReferenceDescriptorsin interfaceConceptDescriptor- Returns:
 - all references aka association links (including those of parent concepts) in unspecified order, never 
null 
 
- 
getRefDescriptor
public ReferenceDescriptor getRefDescriptor(SReferenceLinkId id)
- Specified by:
 getRefDescriptorin interfaceConceptDescriptor
 
- 
getLinkDescriptors
public Collection<LinkDescriptor> getLinkDescriptors()
- Specified by:
 getLinkDescriptorsin interfaceConceptDescriptor- Returns:
 - all containment aka aggregation links (including those of parent concepts) in unspecified order, never 
null 
 
- 
getLinkDescriptor
public LinkDescriptor getLinkDescriptor(SContainmentLinkId id)
- Specified by:
 getLinkDescriptorin interfaceConceptDescriptor
 
- 
getStaticScope
public StaticScope getStaticScope()
- Specified by:
 getStaticScopein interfaceConceptDescriptor
 
- 
getPropertyDescriptors
public Collection<PropertyDescriptor> getPropertyDescriptors()
- Specified by:
 getPropertyDescriptorsin interfaceConceptDescriptor- Returns:
 - all properties (including those of parent concepts) in unspecified order, never 
null 
 
- 
getPropertyDescriptor
public PropertyDescriptor getPropertyDescriptor(SPropertyId id)
- Specified by:
 getPropertyDescriptorin interfaceConceptDescriptor
 
- 
getConceptKind
public ConceptKind getConceptKind()
- Specified by:
 getConceptKindin interfaceConceptDescriptor
 
- 
isAbstract
public boolean isAbstract()
- Specified by:
 isAbstractin interfaceConceptDescriptor
 
- 
isFinal
public boolean isFinal()
- Specified by:
 isFinalin interfaceConceptDescriptor
 
- 
isRootable
public boolean isRootable()
- Specified by:
 isRootablein interfaceConceptDescriptor
 
- 
getConceptAlias
@NotNull public String getConceptAlias()
- Specified by:
 getConceptAliasin interfaceConceptDescriptor
 
- 
getSourceNode
@Nullable public SNodeReference getSourceNode()
- Specified by:
 getSourceNodein interfaceNamedElementDescriptor
 
- 
getSuperConceptId
@Nullable public SConceptId getSuperConceptId()
- Specified by:
 getSuperConceptIdin interfaceConceptDescriptor
 
- 
getParentsIds
public List<SConceptId> getParentsIds()
Description copied from interface:ConceptDescriptorIncludes immediate extended/implemented interfaces and superconcept, for non-interface ConceptDescriptor. For BaseConcept, doesn't list itself as parent- Specified by:
 getParentsIdsin interfaceConceptDescriptor
 
- 
isAssignableTo
public boolean isAssignableTo(SConceptId conceptId)
- Specified by:
 isAssignableToin interfaceConceptDescriptor
 
- 
getAncestorsIds
public Set<SConceptId> getAncestorsIds()
- Specified by:
 getAncestorsIdsin interfaceConceptDescriptor
 
- 
getStubConceptId
public SConceptId getStubConceptId()
- Specified by:
 getStubConceptIdin interfaceConceptDescriptor
 
- 
getName
@NotNull public String getName()
- Specified by:
 getNamein interfaceNamedElementDescriptor
 
- 
getVersion
public int getVersion()
Description copied from interface:ConceptDescriptorThis method is for internal use only. It allows to identify whether some properties, which were added in later versions of MPS, were specified on construction (by generated code) or they have default values. This is needed not to make wasSet/wasNotSet field for each method. version == 2 denotes addition of #getStubConceptId()- Specified by:
 getVersionin interfaceConceptDescriptor
 
 - 
 
 -