Class CommandParameters
- java.lang.Object
-
- org.glassfish.internal.embedded.admin.CommandParameters
-
public class CommandParameters extends Object
Command Parameters, needs to be refined...- Author:
- Jerome Dochez
-
-
Constructor Summary
Constructors Constructor Description CommandParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOperand(String operand)
Adds a command primary (operand) parameter.void
addOption(String optionName, String optionValue)
Adds a command option as the user would specify it using the CLI command for instanceString
getOperand()
Get the first operand.List<String>
getOperands()
Get the operands.ParameterMap
getOptions()
void
setOperand(String operand)
Sets the command primary (operand) parameter.void
setOption(String optionName, String optionValue)
Sets a command option as the user would specify it using the CLI command for instance
-
-
-
Method Detail
-
setOperand
public void setOperand(String operand)
Sets the command primary (operand) parameter.- Parameters:
operand
- the command operand
-
addOperand
public void addOperand(String operand)
Adds a command primary (operand) parameter.- Parameters:
operand
- the command operand
-
getOperand
public String getOperand()
Get the first operand.
-
setOption
public void setOption(String optionName, String optionValue)
Sets a command option as the user would specify it using the CLI command for instance- Parameters:
optionName
- option name (without leading -- chars)optionValue
- option value
-
addOption
public void addOption(String optionName, String optionValue)
Adds a command option as the user would specify it using the CLI command for instance- Parameters:
optionName
- option name (without leading -- chars)optionValue
- option value
-
getOptions
public ParameterMap getOptions()
-
-