Class MultiChoiceOption

    • Field Detail

      • optionLabels

        protected String[] optionLabels
      • optionDescriptions

        protected String[] optionDescriptions
      • defaultOptionIndex

        protected int defaultOptionIndex
      • chosenOptionIndex

        protected int chosenOptionIndex
    • Constructor Detail

      • MultiChoiceOption

        public MultiChoiceOption​(String name,
                                 char cliChar,
                                 String purpose,
                                 String[] optionLabels,
                                 String[] optionDescriptions,
                                 int defaultOptionIndex)
    • Method Detail

      • getDefaultCLIString

        public String getDefaultCLIString()
        Description copied from interface: Option
        Gets the Command Line Interface text
        Returns:
        the Command Line Interface text
      • getValueAsCLIString

        public String getValueAsCLIString()
        Description copied from interface: Option
        Gets the value of a Command Line Interface text as a string
        Returns:
        the string with the value of the Command Line Interface text
      • setValueViaCLIString

        public void setValueViaCLIString​(String s)
        Description copied from interface: Option
        Sets value of this option via the Command Line Interface text
        Parameters:
        s - the Command Line Interface text
      • setChosenLabel

        public void setChosenLabel​(String label)
      • setChosenIndex

        public void setChosenIndex​(int index)
      • getOptionLabels

        public String[] getOptionLabels()
      • getOptionDescriptions

        public String[] getOptionDescriptions()
      • getDefaultOptionIndex

        public int getDefaultOptionIndex()
      • getChosenLabel

        public String getChosenLabel()
      • getChosenIndex

        public int getChosenIndex()