Class CmdParameters
- java.lang.Object
-
- org.nuxeo.ecm.platform.commandline.executor.api.CmdParameters
-
- All Implemented Interfaces:
Serializable
public class CmdParameters extends Object implements Serializable
Wraps command parameters (String or File path, or a list of values that will be expanded as separate parameters).- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCmdParameters.ParameterValueA parameter value holding either a single String or a list of Strings.
-
Constructor Summary
Constructors Constructor Description CmdParameters()It is recommended to use the CmdParameters instance returned byCommandLineExecutorService.getDefaultCmdParameters()which is initialized with a few common parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNamedParameter(String name, File file)voidaddNamedParameter(String name, String value)voidaddNamedParameter(String name, List<String> values)StringgetParameter(String name)Map<String,CmdParameters.ParameterValue>getParameters()
-
-
-
Constructor Detail
-
CmdParameters
public CmdParameters()
It is recommended to use the CmdParameters instance returned byCommandLineExecutorService.getDefaultCmdParameters()which is initialized with a few common parameters.
-
-
Method Detail
-
getParameters
public Map<String,CmdParameters.ParameterValue> getParameters()
- Since:
- 7.1
-
-