Uses of Interface net.dpml.cli.Option

Uses in package net.dpml.cli

Constructors with parameter type net.dpml.cli.Option

Creates a new OptionException.
OptionException.OptionException(Option option, String messageKey)
Creates a new OptionException.
OptionException.OptionException(Option option, String messageKey, String value)
Creates a new OptionException.

Methods with parameter type net.dpml.cli.Option

void
Adds an Option to the CommandLine
void
WriteableCommandLine.addSwitch(Option option, boolean value)
Adds a switch value to an Option in the CommandLine.
void
WriteableCommandLine.addValue(Option option, Object value)
Adds a value to an Option in the CommandLine.
void
Adds defaults to a CommandLine.
int
Retrieves the number of times the specified Option appeared in this CommandLine
Boolean
Retrieves the Boolean value associated with the specified Switch
Boolean
CommandLine.getSwitch(Option option, Boolean defaultValue)
Retrieves the Boolean value associated with the specified Switch
Object
Retrieves the single Argument value associated with the specified Option
Object
CommandLine.getValue(Option option, Object defaultValue)
Retrieves the single Argument value associated with the specified Option
List
Retrieves the Argument values associated with the specified Option
List
CommandLine.getValues(Option option, List defaultValues)
Retrieves the Argument values associated with the specified Option
boolean
Detects the presence of an option in this CommandLine.
void
Argument.processValues(WriteableCommandLine commandLine, ListIterator args, Option option)
Processes the "README" style element of the argument.
void
WriteableCommandLine.setDefaultSwitch(Option option, Boolean defaultSwitch)
Sets the default state for a Switch in the CommandLine.
void
WriteableCommandLine.setDefaultValues(Option option, List defaultValues)
Sets the default values for an Option in the CommandLine
void
Performs any necessary validation on the values added to the CommandLine.

Methods with return type net.dpml.cli.Option

Option
Option.findOption(String trigger)
Recursively searches for an option with the supplied trigger.
Option
Option
Gets the Option the exception relates to
Option
CommandLine.getOption(String trigger)
Finds the Option with the specified trigger

Uses in package net.dpml.cli.commandline

Constructors with parameter type net.dpml.cli.Option

PreferencesCommandLine.PreferencesCommandLine(Option root, Preferences preferences)
Creates a new PreferencesCommandLine using the specified root Option and Preferences node.
PreferencesCommandLine.PreferencesCommandLine(Option root, Preferences preferences, char separator)
Creates a new PreferencesCommandLine using the specified root Option, Preferences node and value separator.
PropertiesCommandLine.PropertiesCommandLine(Option root, Properties properties)
Creates a new PropertiesCommandLine using the specified root Option, Properties instance.
PropertiesCommandLine.PropertiesCommandLine(Option root, Properties properties, char separator)
Creates a new PropertiesCommandLine using the specified root Option, Properties instance and value separator.
Creates a new WriteableCommandLineImpl rooted on the specified Option, to hold the parsed arguments.

Methods with parameter type net.dpml.cli.Option

void
Add an option.
void
WriteableCommandLineImpl.addSwitch(Option option, boolean value)
Add a switch.
void
WriteableCommandLineImpl.addValue(Option option, Object value)
Add an option.
int
Retrieves the number of times the specified Option appeared in this CommandLine
Boolean
Retrieves the Boolean value associated with the specified Switch
Boolean
DefaultingCommandLine.getSwitch(Option option, Boolean defaultValue)
Retrieves the Boolean value associated with the specified Switch
Boolean
PreferencesCommandLine.getSwitch(Option option, Boolean defaultValue)
Retrieves the Boolean value associated with the specified Switch
Boolean
PropertiesCommandLine.getSwitch(Option option, Boolean defaultValue)
Retrieves the Boolean value associated with the specified Switch
Boolean
WriteableCommandLineImpl.getSwitch(Option option, Boolean defaultValue)
Retrieves the Boolean value associated with the specified Switch
Object
Retrieves the single Argument value associated with the specified Option
Object
CommandLineImpl.getValue(Option option, Object defaultValue)
Retrieves the single Argument value associated with the specified Option
List
Retrieves the Argument values associated with the specified Option
List
DefaultingCommandLine.getValues(Option option, List defaultValues)
Retrieves the Argument values associated with the specified Option
List
PreferencesCommandLine.getValues(Option option, List defaultValues)
Retrieves the Argument values associated with the specified Option
List
PropertiesCommandLine.getValues(Option option, List defaultValues)
Retrieves the Argument values associated with the specified Option
List
WriteableCommandLineImpl.getValues(Option option, List defaultValues)
Retrieves the Argument values associated with the specified Option
boolean
Detects the presence of an option in this CommandLine.
boolean
Detects the presence of an option in this CommandLine.
boolean
Detects the presence of an option in this CommandLine.
boolean
Detects the presence of an option in this CommandLine.
void
WriteableCommandLineImpl.setDefaultSwitch(Option option, Boolean defaultSwitch)
Set default switch.
void
Set default values.
void
Sets the help option to use with the simplified parsing.

Methods with return type net.dpml.cli.Option

Option
Finds the Option with the specified trigger
Option
Finds the Option with the specified trigger
Option
Finds the Option with the specified trigger
Option
Finds the Option with the specified trigger

Uses in package net.dpml.cli.builder

Methods with parameter type net.dpml.cli.Option

GroupBuilder
Add this option to the group

Methods with return type net.dpml.cli.Option

Option
Creates a new Option instance.

Uses in package net.dpml.cli.option

Classes implementing net.dpml.cli.Option

class
An implementation of an Argument.
class
Represents a cvs "update" style command line option.
class
A Parent implementation representing normal options.
class
An implementation of Group
class
A base implementation of Option providing limited ground work for further Option implementations.
class
A base implementation of Parent providing limited ground work for further Parent implementations.
class
Handles the java style "-Dprop=value" opions
class
An Argument implementation that allows a variable size Argument to precede a fixed size argument.
class
A Parent implementation representing normal switch options.

Constructors with parameter type net.dpml.cli.Option

HelpLineImpl.HelpLineImpl(Option option, int indent)
Creates a new HelpLineImpl to represent a particular Option in the online help.

Methods with parameter type net.dpml.cli.Option

void
Adds defaults to a CommandLine.
void
ArgumentImpl.processValues(WriteableCommandLine commandLine, ListIterator arguments, Option option)
Processes the "README" style element of the argument.
void
Performs any necessary validation on the values added to the CommandLine.
void
Checks that the supplied CommandLine is valid with respect to the suppled option.

Methods with return type net.dpml.cli.Option

Option
GroupImpl.findOption(String trigger)
Recursively searches for an option with the supplied trigger.
Option
OptionImpl.findOption(String trigger)
Recursively searches for an option with the supplied trigger.
Option
ParentImpl.findOption(String trigger)
Recursively searches for an option with the supplied trigger.
Option