Package org.daisy.cli

Class AbstractUI.OptionalArgument

  • Enclosing class:
    AbstractUI

    public static class AbstractUI.OptionalArgument
    extends AbstractUI.Argument
    Provides the information needed by an optional argument.
    Author:
    Joel HÃ¥kansson
    • Constructor Summary

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

      • OptionalArgument

        public OptionalArgument​(java.lang.String name,
                                java.lang.String description,
                                java.lang.String defaultValue)
        Creates a new optional argument
        Parameters:
        name - the name of the argument
        description - the description of the argument
        defaultValue - the default value for the argument
      • OptionalArgument

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

      • getDefault

        public java.lang.String getDefault()
        Gets the default value.
        Returns:
        returns the default value for the argument