net.dpml.cli.commandline
public class DefaultingCommandLine extends CommandLineImpl
Version: @PROJECT-VERSION@
See Also: appendCommandLine DefaultingCommandLine
Method Summary | |
---|---|
void | appendCommandLine(CommandLine commandLine)
Adds a CommandLine instance to the back of the queue. |
Iterator | commandLines()
Builds an iterator over the build in CommandLines.
|
Option | getOption(String trigger)
Finds the Option with the specified trigger
|
List | getOptions()
Retrieves a list of all Options found in this CommandLine
|
Set | getOptionTriggers()
Retrieves a list of all Option triggers found in this CommandLine
|
Set | getProperties()
Retrieves the set of all property names associated with this CommandLine
|
String | getProperty(String property, String defaultValue)
Retrieves the value associated with the specified property
|
Boolean | getSwitch(Option option, Boolean defaultValue)
Retrieves the Boolean value associated with the specified Switch
|
List | getValues(Option option, List defaultValues)
Retrieves the Argument values associated with the specified Option
|
boolean | hasOption(Option option)
Detects the presence of an option in this CommandLine.
|
void | insertCommandLine(int index, CommandLine commandLine)
Adds a CommandLine instance to a specified position in the queue.
|
Parameters: commandLine the default values to use if all CommandLines
Returns: an unmodifiable iterator
Parameters: trigger the name of the option to retrieve
Returns: the Option matching the trigger or null if none exists
Returns: a none null list of Options
Returns: a none null list of Option triggers
Returns: a none null set of property names
Parameters: property the property name to lookup defaultValue the value to use if no other is found
Returns: the value of the property or defaultValue
Parameters: option the Option associated with the value defaultValue the Boolean to use if none match
Returns: the Boolean associated with option or defaultValue if none exists
Parameters: option the Option associated with the values defaultValues the result to return if no values are found
Returns: a list of values or defaultValues if none are found
Parameters: option the Option to search for
Returns: true iff the option is present
Parameters: index ths position at which to insert commandLine the CommandLine to insert