Kie Workbench - Commom - Data modeller Client 6.2.0.CR2

org.kie.workbench.common.screens.datamodeller.client
Enum DataModelerContext.ParseStatus

java.lang.Object
  extended by java.lang.Enum<DataModelerContext.ParseStatus>
      extended by 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
NOT_PARSED
          The source is not parsed.
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".
PARSED
          The source has been parsed without errors, so we basically have the model built to be shown in the editor tab.
 
Method Summary
static DataModelerContext.ParseStatus valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - if the argument is null

Kie Workbench - Commom - Data modeller Client 6.2.0.CR2

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.