public class CommandParameters extends Object
| Constructor and Description |
|---|
CommandParameters() |
| Modifier and Type | Method and 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 instance
|
String |
getOperand()
Get the first operand.
|
List<String> |
getOperands()
Get the operands.
|
org.glassfish.api.admin.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
|
public void setOperand(String operand)
operand - the command operandpublic void addOperand(String operand)
operand - the command operandpublic String getOperand()
public void setOption(String optionName, String optionValue)
optionName - option name (without leading -- chars)optionValue - option valuepublic void addOption(String optionName, String optionValue)
optionName - option name (without leading -- chars)optionValue - option valuepublic org.glassfish.api.admin.ParameterMap getOptions()
Copyright © 2019. All rights reserved.