public class CmdParameters extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
CmdParameters.ParameterValue
A parameter value holding either a single String or a list of Strings.
|
Constructor and Description |
---|
CmdParameters()
It is recommended to use the CmdParameters instance returned by
CommandLineExecutorService.getDefaultCmdParameters() which is initialized with a few common parameters. |
Modifier and Type | Method and Description |
---|---|
void |
addNamedParameter(String name,
File file) |
void |
addNamedParameter(String name,
List<String> values) |
void |
addNamedParameter(String name,
String value) |
String |
getParameter(String name) |
Map<String,CmdParameters.ParameterValue> |
getParameters() |
public CmdParameters()
CommandLineExecutorService.getDefaultCmdParameters()
which is initialized with a few common parameters.public void addNamedParameter(String name, String value)
public void addNamedParameter(String name, File file)
public void addNamedParameter(String name, List<String> values)
public String getParameter(String name)
public Map<String,CmdParameters.ParameterValue> getParameters()
Copyright © 2016 Nuxeo SA. All rights reserved.