Package org.jetbrains.mps.openapi.model
Enum SModelName.SModelNameCheck
- java.lang.Object
-
- java.lang.Enum<SModelName.SModelNameCheck>
-
- org.jetbrains.mps.openapi.model.SModelName.SModelNameCheck
-
- All Implemented Interfaces:
Serializable
,Comparable<SModelName.SModelNameCheck>
- Enclosing class:
- SModelName
public static enum SModelName.SModelNameCheck extends Enum<SModelName.SModelNameCheck>
Possible SModelName check results.
ProblemId allow to extract user friendly messages to properties files and use late in UI.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ContainsSpaces
EmptySimpleName
IllegalAtSignAtBeginOrEnd
IllegalAtSignInNamespace
IllegalAtSignInSimpleName
IllegalAtSignInStereotype
IllegalDotInSimpleName
IllegalDotInSimpleNameEnd
InvalidJavaPackage
Pass
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getProblemDescription()
static SModelName.SModelNameCheck
valueOf(String name)
Returns the enum constant of this type with the specified name.static SModelName.SModelNameCheck[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Pass
public static final SModelName.SModelNameCheck Pass
-
IllegalAtSignInNamespace
public static final SModelName.SModelNameCheck IllegalAtSignInNamespace
-
IllegalAtSignInSimpleName
public static final SModelName.SModelNameCheck IllegalAtSignInSimpleName
-
IllegalAtSignInStereotype
public static final SModelName.SModelNameCheck IllegalAtSignInStereotype
-
IllegalDotInSimpleName
public static final SModelName.SModelNameCheck IllegalDotInSimpleName
-
IllegalDotInSimpleNameEnd
public static final SModelName.SModelNameCheck IllegalDotInSimpleNameEnd
-
IllegalAtSignAtBeginOrEnd
public static final SModelName.SModelNameCheck IllegalAtSignAtBeginOrEnd
-
EmptySimpleName
public static final SModelName.SModelNameCheck EmptySimpleName
-
ContainsSpaces
public static final SModelName.SModelNameCheck ContainsSpaces
-
InvalidJavaPackage
public static final SModelName.SModelNameCheck InvalidJavaPackage
-
-
Method Detail
-
values
public static SModelName.SModelNameCheck[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SModelName.SModelNameCheck c : SModelName.SModelNameCheck.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SModelName.SModelNameCheck valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-