Class CommandParameters


  • public class CommandParameters
    extends Object
    Command Parameters, needs to be refined...
    Author:
    Jerome Dochez
    • 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