Package adams.flow.execution
Enum ExecutionStage
- java.lang.Object
-
- java.lang.Enum<ExecutionStage>
-
- adams.flow.execution.ExecutionStage
-
- All Implemented Interfaces:
EnumWithCustomDisplay<ExecutionStage>,EnumWithCustomParsing<ExecutionStage>,Serializable,Comparable<ExecutionStage>
public enum ExecutionStage extends Enum<ExecutionStage> implements EnumWithCustomDisplay<ExecutionStage>
Enumeration of flow execution stages.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description POST_EXECUTEPOST_INPUTPOST_OUTPUTPRE_EXECUTEPRE_INPUTPRE_OUTPUT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionStageparse(String s)Parses the given string and returns the associated enum.StringtoDisplay()Returns the display string.StringtoRaw()Returns the raw enum string.StringtoString()Returns the display string.static StringtoString(AbstractOption option, Object object)Returns the enum as string.static ExecutionStagevalueOf(AbstractOption option, String str)Returns an enum generated from the string.static ExecutionStagevalueOf(String name)Returns the enum constant of this type with the specified name.static ExecutionStage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRE_INPUT
public static final ExecutionStage PRE_INPUT
-
POST_INPUT
public static final ExecutionStage POST_INPUT
-
PRE_EXECUTE
public static final ExecutionStage PRE_EXECUTE
-
POST_EXECUTE
public static final ExecutionStage POST_EXECUTE
-
PRE_OUTPUT
public static final ExecutionStage PRE_OUTPUT
-
POST_OUTPUT
public static final ExecutionStage POST_OUTPUT
-
-
Method Detail
-
values
public static ExecutionStage[] 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 (ExecutionStage c : ExecutionStage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExecutionStage 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
-
toDisplay
public String toDisplay()
Returns the display string.- Specified by:
toDisplayin interfaceEnumWithCustomDisplay<ExecutionStage>- Returns:
- the display string
-
toRaw
public String toRaw()
Returns the raw enum string.- Specified by:
toRawin interfaceEnumWithCustomDisplay<ExecutionStage>- Returns:
- the raw enum string
-
toString
public String toString()
Returns the display string.- Overrides:
toStringin classEnum<ExecutionStage>- Returns:
- the display string
-
parse
public ExecutionStage parse(String s)
Parses the given string and returns the associated enum.- Specified by:
parsein interfaceEnumWithCustomParsing<ExecutionStage>- Parameters:
s- the string to parse- Returns:
- the enum or null if not found
-
toString
public static String toString(AbstractOption option, Object object)
Returns the enum as string.- Parameters:
option- the current optionobject- the enum object to convert- Returns:
- the generated string
-
valueOf
public static ExecutionStage valueOf(AbstractOption option, String str)
Returns an enum generated from the string.- Parameters:
option- the current optionstr- the string to convert to an enum- Returns:
- the generated enum or null in case of error
-
-