Interface SEnumeration
- 
- All Superinterfaces:
 SDataType,SElement,SNamedElement,SType
- All Known Implementing Classes:
 InvalidEnumeration,SEnumAdapter,SEnumerationAdapter,SInterpretedEnumerationAdapter
public interface SEnumeration extends SNamedElement, SDataType
Enumerations define collections of relatedoptions. 
- 
- 
Field Summary
- 
Fields inherited from interface org.jetbrains.mps.openapi.language.SType
NOT_A_VALUE 
 - 
 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SEnumerationLiteralgetDefault()Returns default value of the type.SEnumerationLiteralgetLiteral(String name)Resolves the enumeration literal with matching nameCollection<SEnumerationLiteral>getLiterals()- 
Methods inherited from interface org.jetbrains.mps.openapi.language.SDataType
fromString, toString 
- 
Methods inherited from interface org.jetbrains.mps.openapi.language.SElement
getLanguage, getSourceNode 
- 
Methods inherited from interface org.jetbrains.mps.openapi.language.SNamedElement
getName 
- 
Methods inherited from interface org.jetbrains.mps.openapi.language.SType
isInstanceOf 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getLiteral
@Nullable SEnumerationLiteral getLiteral(@Nullable String name)
Resolves the enumeration literal with matching name 
- 
getDefault
@Nullable SEnumerationLiteral getDefault()
Description copied from interface:STypeReturns default value of the type.- Specified by:
 getDefaultin interfaceSType
 
- 
getLiterals
@NotNull Collection<SEnumerationLiteral> getLiterals()
- Returns:
 - ordered set of enumeration literals
 
 
 - 
 
 -