public class RowRunnerParameter extends ChoiceParameter<RowRunner>
The details of documentation differ according to what the runner is to be used for, so factory methods are provided instead of a public constructor.
Modifier and Type | Field and Description |
---|---|
static RowRunner |
DFLT_MATCH_RUNNER
Default runner instance for cross-matching purposes.
|
Modifier and Type | Method and Description |
---|---|
static RowRunnerParameter |
createMatchRunnerParameter(String name)
Creates a runner parameter suitable for use with crossmatching tasks.
|
static RowRunnerParameter |
createScanRunnerParameter(String name)
Creates a runner parameter suitable for use when scanning large tables.
|
RowRunner |
stringToObject(Environment env,
String sval)
Takes a non-blank string, as supplied by the execution environment,
and turns it into a typed value for this parameter.
|
getUsage, objectToString, setDefaultOption, setUsage
addOption, addOption, choiceToString, clearOptions, getName, getOption, getOptionNames, getOptions, getOptionValueList, stringifyOption, stringToChoice
clearValue, getDescription, getName, getPosition, getPreferExplicit, getPrompt, getStringDefault, getValueClass, isNullPermitted, objectValue, setDescription, setDescription, setName, setNullPermitted, setPosition, setPreferExplicit, setPrompt, setStringDefault, setValue, setValueFromObject, setValueFromString, stringValue, toArray, toString
public static final RowRunner DFLT_MATCH_RUNNER
public RowRunner stringToObject(Environment env, String sval) throws TaskException
Parameter
It is an error to supply a null or empty string value.
If this method fails (throws a ParameterValueException)
and if allowClassnameValue
is set, then a subsequent
attempt will be made to interpret the stringVal
as the classname of a suitable class with a no-arg constructor.
stringToObject
in class ChoiceParameter<RowRunner>
env
- execution environment; in most cases this is not required
but for some purposes environment-specific characteristics
may influence the resultsval
- non-null, non-empty string valueTaskException
public static RowRunnerParameter createScanRunnerParameter(String name)
name
- parameter namepublic static RowRunnerParameter createMatchRunnerParameter(String name)
name
- parameter nameCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.