public class SelectParamFactory extends Object
SelectParam
based upon the options passed to the command-line.Modifier and Type | Method and Description |
---|---|
static SelectParam<Path> |
experimentSelectParam(org.apache.commons.cli.CommandLine line,
Path defaultExperiment)
Can point to either:
a path ending in .xml, assumed to BeanXML for an experiment
nothing, then default experiment is used
|
static SelectParam<Optional<Path>> |
inputSelectParam(org.apache.commons.cli.CommandLine line)
Can point to either:
a path ending in .xml, assumed to BeanXML for an input manager
a directory, set as an the inputDirectory in the input-context
a string with a wild-card, assumed to be a glob, set into the input-context as a glob
a string with a period and without any forward or backwards slashes, set into the
input-context as an extension to match
|
static SelectParam<Optional<Path>> |
outputSelectParam(org.apache.commons.cli.CommandLine line)
Can point to either:
a path ending in .xml, assumed to BeanXML for an output manager
a directory, set as the outputDirectory in the input-context
|
static SelectParam<Optional<Path>> |
pathOrTaskNameOrDefault(org.apache.commons.cli.CommandLine line,
String optionName,
Path tasksDirectory)
Can point to either a path to beanXML
|
static SelectParam<Optional<Path>> |
useDefault()
Use default manager.
|
public static SelectParam<Optional<Path>> useDefault()
public static SelectParam<Optional<Path>> pathOrTaskNameOrDefault(org.apache.commons.cli.CommandLine line, String optionName, Path tasksDirectory)
line
- command-line to consider if certain options have been selected or notoptionName
- which option we considertasksDirectory
- path to the "tasks" directory in the anchor configuration filespublic static SelectParam<Optional<Path>> inputSelectParam(org.apache.commons.cli.CommandLine line)
line
- command-line to consider if certain options have been selected or notpublic static SelectParam<Optional<Path>> outputSelectParam(org.apache.commons.cli.CommandLine line) throws ExperimentExecutionException
line
- command-line to consider if certain options have been selected or notExperimentExecutionException
public static SelectParam<Path> experimentSelectParam(org.apache.commons.cli.CommandLine line, Path defaultExperiment) throws ExperimentExecutionException
line
- command-line to consider if certain options have been selected or not.defaultExperiment
- path to the default experiment.ExperimentExecutionException
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.