Enum XPipelineType
- java.lang.Object
-
- java.lang.Enum<XPipelineType>
-
- net.sf.okapi.common.pipelinebuilder.XPipelineType
-
- All Implemented Interfaces:
Serializable,Comparable<XPipelineType>
public enum XPipelineType extends Enum<XPipelineType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PARALLELSteps are connected in parallel, e.g.SEQUENTIALSteps are connected sequentially, e.g.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XPipelineTypevalueOf(String name)Returns the enum constant of this type with the specified name.static XPipelineType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SEQUENTIAL
public static final XPipelineType SEQUENTIAL
Steps are connected sequentially, e.g. the output of a previous step connected with the input of a next step.
-
PARALLEL
public static final XPipelineType PARALLEL
Steps are connected in parallel, e.g. inputs of all steps are joined together, and the outputs are joined together.
-
-
Method Detail
-
values
public static XPipelineType[] 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 (XPipelineType c : XPipelineType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XPipelineType 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
-
-