Package org.daisy.cli

Class AbstractUI.Argument

java.lang.Object
org.daisy.cli.AbstractUI.Definition
org.daisy.cli.AbstractUI.Argument
Direct Known Subclasses:
AbstractUI.OptionalArgument
Enclosing class:
AbstractUI

public static class AbstractUI.Argument extends AbstractUI.Definition
Provides the information needed by an application argument.
Author:
Joel HÃ¥kansson
  • Constructor Details

    • Argument

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

      public Argument(String name, String desc, 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 Details

    • 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 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