Class ListOption

    • Field Detail

      • currentList

        protected Option[] currentList
      • expectedType

        protected Option expectedType
      • defaultList

        protected Option[] defaultList
      • separatorChar

        protected char separatorChar
    • Constructor Detail

      • ListOption

        public ListOption​(String name,
                          char cliChar,
                          String purpose,
                          Option expectedType,
                          Option[] defaultList,
                          char separatorChar)
    • Method Detail

      • setList

        public void setList​(Option[] optList)
      • getList

        public Option[] getList()
      • 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
      • cliStringToOptionArray

        public static Option[] cliStringToOptionArray​(String s,
                                                      char separator,
                                                      Option expectedType)
      • optionArrayToCLIString

        public static String optionArrayToCLIString​(Option[] os,
                                                    char separator)