Enum StepParameterType
- java.lang.Object
-
- java.lang.Enum<StepParameterType>
-
- net.sf.okapi.common.pipeline.annotations.StepParameterType
-
- All Implemented Interfaces:
Serializable,Comparable<StepParameterType>
public enum StepParameterType extends Enum<StepParameterType>
Types of the runtime parameters for steps.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BATCH_INPUT_COUNTNumber of input documents in the current batch.EXECUTION_CONTEXTContext in which execution is occurring (CLI parameters, UI parent shell, etc.), via anExecutionContextobject.FILTER_CONFIGURATION_IDFilter configuration identifier for the main input document.FILTER_CONFIGURATION_MAPPERFilter configuration mapper.INPUT_RAWDOCRawDocument object of the main input document.INPUT_ROOT_DIRECTORYRoot directory of the first set of input files.INPUT_URIURI of the main input document.OUTPUT_DIRECTORYOutput directory.OUTPUT_ENCODINGOutput encoding of the main output document.OUTPUT_STREAMoutput stream of the main output document.OUTPUT_URIURI of the main output document.ROOT_DIRECTORYRoot directory for the batch.SECOND_INPUT_RAWDOCRawDocument object of the second input document.SOURCE_LOCALESource locale.TARGET_LOCALESingle Target locale.TARGET_LOCALESList of target locales.THIRD_INPUT_RAWDOCRawDocument object of the third input document.UI_PARENTDeprecated.The UI parent is now encapsulated inEXECUTION_CONTEXT.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StepParameterTypevalueOf(String name)Returns the enum constant of this type with the specified name.static StepParameterType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INPUT_RAWDOC
public static final StepParameterType INPUT_RAWDOC
RawDocument object of the main input document.
-
SECOND_INPUT_RAWDOC
public static final StepParameterType SECOND_INPUT_RAWDOC
RawDocument object of the second input document.
-
THIRD_INPUT_RAWDOC
public static final StepParameterType THIRD_INPUT_RAWDOC
RawDocument object of the third input document.
-
INPUT_URI
public static final StepParameterType INPUT_URI
URI of the main input document.
-
OUTPUT_URI
public static final StepParameterType OUTPUT_URI
URI of the main output document.
-
OUTPUT_STREAM
public static final StepParameterType OUTPUT_STREAM
output stream of the main output document.
-
SOURCE_LOCALE
public static final StepParameterType SOURCE_LOCALE
Source locale.
-
TARGET_LOCALE
public static final StepParameterType TARGET_LOCALE
Single Target locale. Default, bilingual case used in Rainbow.
-
TARGET_LOCALES
public static final StepParameterType TARGET_LOCALES
List of target locales. Used when more than one target needs to be initialized.
-
FILTER_CONFIGURATION_ID
public static final StepParameterType FILTER_CONFIGURATION_ID
Filter configuration identifier for the main input document.
-
FILTER_CONFIGURATION_MAPPER
public static final StepParameterType FILTER_CONFIGURATION_MAPPER
Filter configuration mapper.
-
OUTPUT_ENCODING
public static final StepParameterType OUTPUT_ENCODING
Output encoding of the main output document.
-
ROOT_DIRECTORY
public static final StepParameterType ROOT_DIRECTORY
Root directory for the batch.
-
UI_PARENT
@Deprecated public static final StepParameterType UI_PARENT
Deprecated.The UI parent is now encapsulated inEXECUTION_CONTEXT. Use that instead.UI parent object of the calling application (shell, main window, etc.)
-
BATCH_INPUT_COUNT
public static final StepParameterType BATCH_INPUT_COUNT
Number of input documents in the current batch.
-
INPUT_ROOT_DIRECTORY
public static final StepParameterType INPUT_ROOT_DIRECTORY
Root directory of the first set of input files.
-
OUTPUT_DIRECTORY
public static final StepParameterType OUTPUT_DIRECTORY
Output directory.
-
EXECUTION_CONTEXT
public static final StepParameterType EXECUTION_CONTEXT
Context in which execution is occurring (CLI parameters, UI parent shell, etc.), via anExecutionContextobject.
-
-
Method Detail
-
values
public static StepParameterType[] 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 (StepParameterType c : StepParameterType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StepParameterType 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
-
-