Package jetbrains.mps.smodel
Class SModelId
- java.lang.Object
 - 
- jetbrains.mps.smodel.SModelId
 
 
- 
- All Implemented Interfaces:
 SModelId
- Direct Known Subclasses:
 SModelId.ForeignSModelId,SModelId.IntegerSModelId,SModelId.ModelNameSModelId,SModelId.RegularSModelId,SModelId.RelativePathSModelId
public abstract class SModelId extends Object implements SModelId
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSModelId.ForeignSModelIdModel identity based on plain string, with optional kind part up to first hash ('#') sign (i.e.static classSModelId.IntegerSModelIdInteger-backed, module-private model identity.static classSModelId.ModelNameSModelIdstatic classSModelId.RegularSModelIdstatic classSModelId.RelativePathSModelId 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SModelIdforeign(String id)static SModelIdforeign(String kind, String id)SeeSModelId.ForeignSModelIdfor detailsstatic SModelIdfromString(String id)Deprecated.this method doesn't supportSModelIdFactory, usePersistenceFacade.createModelId(String)instead.static SModelIdgenerate()StringgetModelName()Returns model name if it is a part of the identifier, or null otherwise.booleanisGloballyUnique()Globally unique model identifiers can be resolved in a context of the whole repository.static SModelIdregular(String suffix)static SModelIdregular(UUID uid) 
 - 
 
- 
- 
Method Detail
- 
generate
public static SModelId generate()
 
- 
foreign
public static SModelId foreign(@Nullable String kind, @NotNull String id)
SeeSModelId.ForeignSModelIdfor details 
- 
fromString
@Deprecated public static SModelId fromString(String id)
Deprecated.this method doesn't supportSModelIdFactory, usePersistenceFacade.createModelId(String)instead. 
- 
isGloballyUnique
public boolean isGloballyUnique()
Description copied from interface:SModelIdGlobally unique model identifiers can be resolved in a context of the whole repository. For example, implementations based onUUIDorURIdo not need a module to be resolved.- Specified by:
 isGloballyUniquein interfaceSModelId
 
- 
getModelName
public String getModelName()
Description copied from interface:SModelIdReturns model name if it is a part of the identifier, or null otherwise.- Specified by:
 getModelNamein interfaceSModelId
 
 - 
 
 -