org.glassfish.internal.embedded.admin
Class CommandParameters

java.lang.Object
  extended by org.glassfish.internal.embedded.admin.CommandParameters

public class CommandParameters
extends Object

Command Parameters, needs to be refined...

Author:
Jerome Dochez

Constructor Summary
CommandParameters()
           
 
Method Summary
 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.
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandParameters

public CommandParameters()
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.


getOperands

public List<String> getOperands()
Get the operands.


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()


Copyright © 2012 GlassFish Community. All Rights Reserved.