Class InvalidConcept
- java.lang.Object
 - 
- jetbrains.mps.smodel.adapter.structure.SNamedElementAdapter
 - 
- jetbrains.mps.smodel.adapter.structure.concept.SAbstractConceptAdapter
 - 
- jetbrains.mps.smodel.adapter.structure.concept.InvalidConcept
 
 
 
 
- 
- All Implemented Interfaces:
 ConceptMetaInfoConverter,SAbstractConcept,SConcept,SElement,SInterfaceConcept,SNamedElement
public class InvalidConcept extends SAbstractConceptAdapter implements SConcept, SInterfaceConcept
This adapter means that MPS needed to load some concept but was unable to find it. Methods of this class are not intended to be executed (though for now it might not be that way) It will be ok if we throw an exception from methods except isValid sometimes. This can be done when we'll be able to handle missing languages correctly in every subsystem 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringINVALID_PREFIX- 
Fields inherited from class jetbrains.mps.smodel.adapter.structure.concept.SAbstractConceptAdapter
ID_DELIM 
- 
Fields inherited from class jetbrains.mps.smodel.adapter.structure.SNamedElementAdapter
myFqName 
 - 
 
- 
Constructor Summary
Constructors Constructor Description InvalidConcept(String fqname) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InvalidConceptdeserialize(String s)booleanequals(Object obj)protected SNodefindInModel(SModel structureModel)a helper method to get a declaration node for this concept in the case of the legacy concept resolving (by string id)ConceptDescriptorgetConceptDescriptor()SLanguagegetLanguage()The language that defines the conceptStringgetQualifiedName()SConceptgetSuperConcept()Returns the superconcept of this conceptIterable<SInterfaceConcept>getSuperInterfaces()Returns immediately implemented interfacesinthashCode()booleanisAbstract()booleanisRootable()protected booleanisSubConceptOfSpecial(ConceptDescriptor thisDescriptor, ConceptDescriptor anotherDescriptor, SAbstractConcept anotherConcept)Stringserialize()- 
Methods inherited from class jetbrains.mps.smodel.adapter.structure.concept.SAbstractConceptAdapter
convertAggregation, convertAssociation, convertProperty, getConceptAlias, getContainmentLinks, getDeclarationNode, getDescriptor, getHelpUrl, getProperties, getReferenceLinks, getShortDescription, hasLink, hasProperty, hasReference, isSubConceptOf, isValid, toString 
- 
Methods inherited from class jetbrains.mps.smodel.adapter.structure.SNamedElementAdapter
getName, getSourceNode, isBootstrap 
- 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface org.jetbrains.mps.openapi.language.SAbstractConcept
getConceptAlias, getContainmentLinks, getDeclarationNode, getHelpUrl, getName, getProperties, getReferenceLinks, getShortDescription, getSourceNode, isSubConceptOf, isValid 
 - 
 
 - 
 
- 
- 
Field Detail
- 
INVALID_PREFIX
public static final String INVALID_PREFIX
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
isAbstract
public boolean isAbstract()
- Specified by:
 isAbstractin interfaceSAbstractConcept- Overrides:
 isAbstractin classSAbstractConceptAdapter- Returns:
 truefor interfaces and abstract concepts.
 
- 
getQualifiedName
public String getQualifiedName()
- Specified by:
 getQualifiedNamein interfaceSAbstractConcept
 
- 
getConceptDescriptor
@Nullable public ConceptDescriptor getConceptDescriptor()
- Specified by:
 getConceptDescriptorin classSAbstractConceptAdapter- Returns:
 - the backing 
ConceptDescriptor 
 
- 
getLanguage
@NotNull public SLanguage getLanguage()
Description copied from interface:SAbstractConceptThe language that defines the concept- Specified by:
 getLanguagein interfaceSAbstractConcept- Specified by:
 getLanguagein interfaceSElement
 
- 
findInModel
protected SNode findInModel(SModel structureModel)
Description copied from class:SAbstractConceptAdaptera helper method to get a declaration node for this concept in the case of the legacy concept resolving (by string id)- Specified by:
 findInModelin classSAbstractConceptAdapter
 
- 
getSuperConcept
@Nullable public SConcept getSuperConcept()
Description copied from interface:SConceptReturns the superconcept of this concept- Specified by:
 getSuperConceptin interfaceSConcept
 
- 
getSuperInterfaces
public Iterable<SInterfaceConcept> getSuperInterfaces()
Description copied from interface:SConceptReturns immediately implemented interfaces- Specified by:
 getSuperInterfacesin interfaceSConcept- Specified by:
 getSuperInterfacesin interfaceSInterfaceConcept
 
- 
isRootable
public boolean isRootable()
- Specified by:
 isRootablein interfaceSConcept
 
- 
isSubConceptOfSpecial
protected boolean isSubConceptOfSpecial(@NotNull ConceptDescriptor thisDescriptor, ConceptDescriptor anotherDescriptor, SAbstractConcept anotherConcept)
- Specified by:
 isSubConceptOfSpecialin classSAbstractConceptAdapter
 
- 
serialize
public String serialize()
- Specified by:
 serializein classSAbstractConceptAdapter
 
- 
deserialize
public static InvalidConcept deserialize(String s)
 
 - 
 
 -