public class OutputModeParameter extends ObjectFactoryParameter<ProcessingMode> implements TableConsumerParameter, ExtraParameter
Constructor and Description |
---|
OutputModeParameter(String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TableConsumer |
consumerValue(Environment env)
Returns a TableConsumer which corresponds to the value of this
parameter.
|
String |
getExtraUsage(TableEnvironment env)
Returns an extended usage message.
|
String |
getModeUsage(String modeName,
int indent)
Returns a usage message for a given processing mode.
|
void |
setValueFromConsumer(Environment env,
TableConsumer consumer)
Sets the value directly from a given TableConsumer.
|
getObjectFactory, getUsage, stringToObject
clearValue, getDescription, getName, getPosition, getPreferExplicit, getPrompt, getStringDefault, getValueClass, isNullPermitted, objectToString, objectValue, setDescription, setDescription, setName, setNullPermitted, setPosition, setPreferExplicit, setPrompt, setStringDefault, setUsage, setValue, setValueFromObject, setValueFromString, stringValue, toArray, toString
public OutputModeParameter(String name)
name
- parameter namepublic String getExtraUsage(TableEnvironment env)
ExtraParameter
getExtraUsage
in interface ExtraParameter
env
- execution envrionmentpublic String getModeUsage(String modeName, int indent) throws LoadException
modeName
- name of the modeindent
- number of spaces to indent each lineLoadException
public TableConsumer consumerValue(Environment env) throws TaskException
TableConsumerParameter
consumerValue
in interface TableConsumerParameter
env
- execution environmentTaskException
public void setValueFromConsumer(Environment env, TableConsumer consumer) throws TaskException
setValueFromConsumer
in interface TableConsumerParameter
env
- execution environmentconsumer
- table consumerTaskException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.