Package org.daisy.cli

Class AbstractUI.Argument

    • Constructor Summary

      Constructors 
      Constructor Description
      Argument​(java.lang.String name, java.lang.String desc)
      Creates a new Argument.
      Argument​(java.lang.String name, java.lang.String desc, java.util.List<AbstractUI.Definition> values)
      Creates a new Argument with a finite list of acceptable values.
    • Constructor Detail

      • Argument

        public Argument​(java.lang.String name,
                        java.lang.String desc)
        Creates a new Argument.
        Parameters:
        name - the name of the argument
        desc - the description of the argument
      • Argument

        public Argument​(java.lang.String name,
                        java.lang.String desc,
                        java.util.List<AbstractUI.Definition> values)
        Creates a new Argument with a finite list of acceptable values.
        Parameters:
        name - the name of the argument
        desc - the description of the argument
        values - the list of acceptable values
    • Method Detail

      • hasValues

        public boolean hasValues()
        Returns true if this argument has a finite list of acceptable values.
        Returns:
        returns true if a finite list of acceptable values exist, false otherwise
      • getValues

        public java.util.List<AbstractUI.Definition> getValues()
        Gets the list of acceptable values.
        Returns:
        returns the list of acceptable values, or null if the list of possible values is infinite