Enum DataModelerContext.ParseStatus
- java.lang.Object
-
- java.lang.Enum<DataModelerContext.ParseStatus>
-
- org.kie.workbench.common.screens.datamodeller.client.DataModelerContext.ParseStatus
-
- All Implemented Interfaces:
Serializable,Comparable<DataModelerContext.ParseStatus>
- Enclosing class:
- DataModelerContext
public static enum DataModelerContext.ParseStatus extends Enum<DataModelerContext.ParseStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOT_PARSEDThe source is not parsed.PARSE_ERRORSThere have been parsing errors in the last parse try. e.g when the file was loaded at editor opening time, or when the user tried to switch from the "source tab" to the "editor tab".PARSEDThe source has been parsed without errors, so we basically have the model built to be shown in the editor tab.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataModelerContext.ParseStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static DataModelerContext.ParseStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PARSED
public static final DataModelerContext.ParseStatus PARSED
The source has been parsed without errors, so we basically have the model built to be shown in the editor tab.
-
NOT_PARSED
public static final DataModelerContext.ParseStatus NOT_PARSED
The source is not parsed. This not necessary means that there are parse errors, for example when the user is changing the code in the source tab the parse status will be NOT_PARSED. It means that if the user wants to open the "Editor" tab the code needs to be parsed.
-
PARSE_ERRORS
public static final DataModelerContext.ParseStatus PARSE_ERRORS
There have been parsing errors in the last parse try. e.g when the file was loaded at editor opening time, or when the user tried to switch from the "source tab" to the "editor tab".
-
-
Method Detail
-
values
public static DataModelerContext.ParseStatus[] 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 (DataModelerContext.ParseStatus c : DataModelerContext.ParseStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataModelerContext.ParseStatus 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
-
-