Package net.sf.okapi.common.pipeline
Enum PipelineReturnValue
- java.lang.Object
-
- java.lang.Enum<PipelineReturnValue>
-
- net.sf.okapi.common.pipeline.PipelineReturnValue
-
- All Implemented Interfaces:
Serializable,Comparable<PipelineReturnValue>
public enum PipelineReturnValue extends Enum<PipelineReturnValue>
Values returned by implementations of theIPipelineinterface.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELLEDIPipelinewas canceled.DESTROYEDIPipelinehas been stopped and all steps have finalized.FAILEDOne of theIPipelinesteps has failed.INTERRUPTEDIPipelinewas interrupted.PAUSEDIPipelinehas been paused.RUNNINGIPipelineis currently running.SUCCEDEDIPipelinecompleted successfully.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PipelineReturnValuevalueOf(String name)Returns the enum constant of this type with the specified name.static PipelineReturnValue[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCEDED
public static final PipelineReturnValue SUCCEDED
IPipelinecompleted successfully.
-
FAILED
public static final PipelineReturnValue FAILED
One of theIPipelinesteps has failed.
-
INTERRUPTED
public static final PipelineReturnValue INTERRUPTED
IPipelinewas interrupted.
-
RUNNING
public static final PipelineReturnValue RUNNING
IPipelineis currently running.
-
PAUSED
public static final PipelineReturnValue PAUSED
IPipelinehas been paused.
-
CANCELLED
public static final PipelineReturnValue CANCELLED
IPipelinewas canceled.
-
DESTROYED
public static final PipelineReturnValue DESTROYED
-
-
Method Detail
-
values
public static PipelineReturnValue[] 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 (PipelineReturnValue c : PipelineReturnValue.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PipelineReturnValue 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
-
-