Enum Flag
- All Implemented Interfaces:
Serializable
,Comparable<Flag>
,java.lang.constant.Constable
,org.eclipse.emf.common.util.Enumerator
public enum Flag extends Enum<Flag> implements org.eclipse.emf.common.util.Enumerator
A representation of the literals of the enumeration 'Flag', and utility methods for working with them.
- See Also:
IDefinitionPackage.getFlag()
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description PREFERRED_ENGINE_ID
The 'PREFERRED ENGINE ID' literal object.PROMOTE_FAILURE_TO_ERROR
The 'PROMOTE FAILURE TO ERROR' literal object.RUN_TEARDOWN_ON_ERROR
The 'RUN TEARDOWN ON ERROR' literal object.STOP_SUITE_ON_ERROR
The 'STOP SUITE ON ERROR' literal object.THREAD_COUNT
The 'THREAD COUNT' literal object.UNDEFINED
The 'UNDEFINED' literal object. -
Field Summary
Fields Modifier and Type Field Description static int
PREFERRED_ENGINE_ID_VALUE
The 'PREFERRED ENGINE ID' literal value.static int
PROMOTE_FAILURE_TO_ERROR_VALUE
The 'PROMOTE FAILURE TO ERROR' literal value.static int
RUN_TEARDOWN_ON_ERROR_VALUE
The 'RUN TEARDOWN ON ERROR' literal value.static int
STOP_SUITE_ON_ERROR_VALUE
The 'STOP SUITE ON ERROR' literal value.static int
THREAD_COUNT_VALUE
The 'THREAD COUNT' literal value.static int
UNDEFINED_VALUE
The 'UNDEFINED' literal value.static List<Flag>
VALUES
A public read-only list of all the 'Flag' enumerators. -
Method Summary
Modifier and Type Method Description static Flag
get(int value)
Returns the 'Flag' literal with the specified integer value.static Flag
get(String literal)
Returns the 'Flag' literal with the specified literal value.static Flag
getByName(String name)
Returns the 'Flag' literal with the specified name.String
getLiteral()
String
getName()
int
getValue()
String
toString()
Returns the literal value of the enumerator, which is its string representation.static Flag
valueOf(String name)
Returns the enum constant of this type with the specified name.static Flag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
UNDEFINED
The 'UNDEFINED' literal object.- See Also:
UNDEFINED_VALUE
-
THREAD_COUNT
The 'THREAD COUNT' literal object.- See Also:
THREAD_COUNT_VALUE
-
PROMOTE_FAILURE_TO_ERROR
The 'PROMOTE FAILURE TO ERROR' literal object.- See Also:
PROMOTE_FAILURE_TO_ERROR_VALUE
-
STOP_SUITE_ON_ERROR
The 'STOP SUITE ON ERROR' literal object.- See Also:
STOP_SUITE_ON_ERROR_VALUE
-
RUN_TEARDOWN_ON_ERROR
The 'RUN TEARDOWN ON ERROR' literal object.- See Also:
RUN_TEARDOWN_ON_ERROR_VALUE
-
PREFERRED_ENGINE_ID
The 'PREFERRED ENGINE ID' literal object.- See Also:
PREFERRED_ENGINE_ID_VALUE
-
-
Field Details
-
UNDEFINED_VALUE
public static final int UNDEFINED_VALUEThe 'UNDEFINED' literal value.If the meaning of 'UNDEFINED' literal object isn't clear, there really should be more of a description here...
- See Also:
UNDEFINED
, Constant Field Values
-
THREAD_COUNT_VALUE
public static final int THREAD_COUNT_VALUEThe 'THREAD COUNT' literal value.If the meaning of 'THREAD COUNT' literal object isn't clear, there really should be more of a description here...
- See Also:
THREAD_COUNT
, Constant Field Values
-
PROMOTE_FAILURE_TO_ERROR_VALUE
public static final int PROMOTE_FAILURE_TO_ERROR_VALUEThe 'PROMOTE FAILURE TO ERROR' literal value.If the meaning of 'PROMOTE FAILURE TO ERROR' literal object isn't clear, there really should be more of a description here...
- See Also:
PROMOTE_FAILURE_TO_ERROR
, Constant Field Values
-
STOP_SUITE_ON_ERROR_VALUE
public static final int STOP_SUITE_ON_ERROR_VALUEThe 'STOP SUITE ON ERROR' literal value.If the meaning of 'STOP SUITE ON ERROR' literal object isn't clear, there really should be more of a description here...
- See Also:
STOP_SUITE_ON_ERROR
, Constant Field Values
-
RUN_TEARDOWN_ON_ERROR_VALUE
public static final int RUN_TEARDOWN_ON_ERROR_VALUEThe 'RUN TEARDOWN ON ERROR' literal value.If the meaning of 'RUN TEARDOWN ON ERROR' literal object isn't clear, there really should be more of a description here...
- See Also:
RUN_TEARDOWN_ON_ERROR
, Constant Field Values
-
PREFERRED_ENGINE_ID_VALUE
public static final int PREFERRED_ENGINE_ID_VALUEThe 'PREFERRED ENGINE ID' literal value.If the meaning of 'PREFERRED ENGINE ID' literal object isn't clear, there really should be more of a description here...
- See Also:
PREFERRED_ENGINE_ID
, Constant Field Values
-
VALUES
A public read-only list of all the 'Flag' enumerators.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
get
Returns the 'Flag' literal with the specified literal value.- Parameters:
literal
- the literal.- Returns:
- the matching enumerator or
null
.
-
getByName
Returns the 'Flag' literal with the specified name.- Parameters:
name
- the name.- Returns:
- the matching enumerator or
null
.
-
get
Returns the 'Flag' literal with the specified integer value.- Parameters:
value
- the integer value.- Returns:
- the matching enumerator or
null
.
-
getValue
public int getValue()- Specified by:
getValue
in interfaceorg.eclipse.emf.common.util.Enumerator
-
getName
- Specified by:
getName
in interfaceorg.eclipse.emf.common.util.Enumerator
-
getLiteral
- Specified by:
getLiteral
in interfaceorg.eclipse.emf.common.util.Enumerator
-
toString
Returns the literal value of the enumerator, which is its string representation.
-