Enum ActivityConstants.TestMode
- java.lang.Object
-
- java.lang.Enum<ActivityConstants.TestMode>
-
- de.aristaflow.adept2.model.globals.ActivityConstants.TestMode
-
- All Implemented Interfaces:
Serializable
,Comparable<ActivityConstants.TestMode>
- Enclosing class:
- ActivityConstants
public static enum ActivityConstants.TestMode extends Enum<ActivityConstants.TestMode>
The execution mode of the operation or an activity.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_TEST
The component does not support any kind of test mode.TEST_CONFIGURATION
The component requirers an explicit configuration for testing.TEST_FLAG
The component can operate in a test mode, if required to.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
static ActivityConstants.TestMode
valueOf(int code)
Returns the enum constant of this type with the specified name.static ActivityConstants.TestMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ActivityConstants.TestMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_TEST
public static final ActivityConstants.TestMode NO_TEST
The component does not support any kind of test mode.
-
TEST_FLAG
public static final ActivityConstants.TestMode TEST_FLAG
The component can operate in a test mode, if required to.
-
TEST_CONFIGURATION
public static final ActivityConstants.TestMode TEST_CONFIGURATION
The component requirers an explicit configuration for testing.
-
-
Method Detail
-
values
public static ActivityConstants.TestMode[] 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 (ActivityConstants.TestMode c : ActivityConstants.TestMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ActivityConstants.TestMode 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
-
getCode
public int getCode()
-
valueOf
public static ActivityConstants.TestMode valueOf(int code)
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:
code
- 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
-
-