Package jetbrains.mps.smodel
Class SModelId.ForeignSModelId
- java.lang.Object
 - 
- jetbrains.mps.smodel.SModelId
 - 
- jetbrains.mps.smodel.SModelId.ForeignSModelId
 
 
 
- 
- All Implemented Interfaces:
 SModelId
- Enclosing class:
 - SModelId
 
public static final class SModelId.ForeignSModelId extends SModelId
Model identity based on plain string, with optional kind part up to first hash ('#') sign (i.e. "[kind#]identity"). Almost any string could be used for identity, provided it's unique within a repository. Although there's no known restrictions about string except uniqueness at the moment, it's advised not to stretch this freedom too much. Primary difference withSModelId.ModelNameSModelIdis that identity is not treated as model name IMPORTANT: it's advised not to use this kind of model id and leave it for legacy code (e.g. VCS that reads model in old persistence format). This one has misguiding name (foreign to what?), mandates globally uniqueness while doesn't help to achieve one. Consider use ofSModelId.IntegerSModelIdif you need simple model id. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class jetbrains.mps.smodel.SModelId
SModelId.ForeignSModelId, SModelId.IntegerSModelId, SModelId.ModelNameSModelId, SModelId.RegularSModelId, SModelId.RelativePathSModelId 
 - 
 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetId()StringgetKind()StringgetType()inthashCode()StringtoString()- 
Methods inherited from class jetbrains.mps.smodel.SModelId
foreign, foreign, fromString, generate, getModelName, isGloballyUnique, regular, regular 
 - 
 
 - 
 
- 
- 
Field Detail
- 
TYPE
public static final String TYPE
- See Also:
 - Constant Field Values
 
 
 - 
 
 -