Adds an Option to the CommandLine
Adds a property value to a name in the CommandLine.
Add a property to the commandline.
Adds a switch value to an Option in the CommandLine.
Adds a value to an Option in the CommandLine.
A Set guarenteed to contain all possible DisplaySetting values
Adds a CommandLine instance to the back of the queue.
Appends usage information to the specified StringBuffer
Appends usage information to the specified StringBuffer
Appends usage information to the specified StringBuffer
Appends usage information to the specified StringBuffer
Appends usage information to the specified StringBuffer
Appends usage information to the specified StringBuffer
Appends usage information to the specified StringBuffer
Appends usage information to the specified StringBuffer
Appends usage information to the specified StringBuffer
Appends usage information to the specified StringBuffer
Appends usage information to the specified StringBuffer
An Option that can process values passed on the command line in the form
"--file README".
Empty consume remaining error constant.
Empty name error constant.
Negative maximum error constant.
Negative minimum error constant.
Null consume remaining error constant.
Null default error constant.
Null defaults error constant.
Null name error constant.
Null validator argument error constant.
Minimum greater than maximum error constant.
Missing argument error constant.
Too few defaults error constant.
Too many defaults error constant.
Too many argument values error constant.
Unexpected argument value constant.
Builds Argument instances.
Creates a new ArgumentBuilder instance
An implementation of an Argument.
Creates a new Argument instance.
Cannot burst error constant.
Indicates whether this Option will be able to process the particular
argument.
Indicates whether this Option will be able to process the particular
argument.
Indicates whether this Option will be able to process the particular
argument.
Indicates whether this Option will be able to process the particular
argument.
Indicates whether this Option will be able to process the particular
argument.
Indicates whether this Option will be able to process the particular
argument.
Indicates whether this Option will be able to process the particular
argument.
Indicates whether this Option will be able to process the particular
argument.
Indicates whether this Option will be able to process the particular
argument.
Chains comparators together.
Chains comparators together.
Chains comparators together.
Chains comparators together.
Chains an array of comparators together.
Chains comparators together.
The ClassValidator
validates the string argument
values are class names.
Class not found constant.
Represents a cvs "update" style command line option.
Creates a new Command instance.
Preferenced commmand name too long error constant.
Creates a new CommandBuilder
instance.
Forces Command instances to appear at the beginning of lists
Forces Command instances to appear at the end of lists
Instances of CommandLine represent a command line that has been processed
according to the definition supplied to the parser.
Instances of CommandLine represent a command line that has been processed
according to the definition supplied to the parser.
Builds an iterator over the build in CommandLines.
A collection of Comparators suitable for use with Option instances.
Creates a new Argument instance using the options specified in this
ArgumentBuilder.
Creates a new Command
instance using the properties of the
CommandBuilder
.
Creates a DefaultOption instance
Creates a new Group instance
Creates a new Option instance.
Creates a new Switch instance
The DateValidator
validates the argument values
are date or time value(s).
Creates a Validator for the default date/time format
Creates a Validator for the specified DateFormat.
Creates a Validator for the List of specified DateFormats.
Date out of range constant.
The default value for the burstEnabled constructor parameter
The default token to indicate that remaining arguments should be consumed
as values.
The default property option description.
The default minimum description width.
The default prefix for disabled switches
The default DisplaySettings used to select the help lines in the main
body of help
The default prefix for enabled switches
The default DisplaySettings used to select the elements to display in the
displayed line of full usage information.
The default screen furniture right of screen
The default screen furniture left of screen
The default screen furniture between columns
The default value for the initial separator char.
The default DisplaySettings used to select the elements of usage per help
line in the main body of help
The default token used to prefix a long option
The default property option name.
The default token used to prefix a short option
The default value for the subsequent separator char.
Manages a queue of default CommandLines.
A Parent implementation representing normal options.
DefaultOption(String,String,boolean,String,String,Set,Set,boolean,net.dpml.cli.Argument,net.dpml.cli.Group,int) - constructor for class net.dpml.cli.option.
DefaultOption Creates a new DefaultOption
Builds DefaultOption instances.
Creates a new DefaultOptionBuilder using defaults
Creates a new DefaultOptionBuilder
Forces DefaultOption instances to appear at the beginning of lists
Forces DefaultOption instances to appear at the end of lists
Adds defaults to a CommandLine.
Adds defaults to a CommandLine.
Adds defaults to a CommandLine.
Adds defaults to a CommandLine.
Adds defaults to a CommandLine.
Adds defaults to a CommandLine.
Adds defaults to a CommandLine.
Indicates that aliases should be included
Indicates that arguments should be included bracketed
Indicates that arguments should be included numbered
Indicates that group arguments should be included
Indicates that groups should be included expanded
Indicates that group names should be included
Indicates that group outer brackets should be included
Indicates that optionality should be included
Indicates that arguments of Parents should be included
Indicates that children of Parents should be included
Indicates that property options should be included
Indicates that switches should be included disabled
Indicates that switches should be included enabled
An enum of possible display settings.
Gets the m_anonymous Arguments of this Group.
Return the argument value if any.
Return the resource bundle name.
Returns the ClassLoader
used to resolve and load
the classes specified by the argument values.
Return the consume remaining flag.
Returns a NumberValidator
for a currency format
for the current default locale.
Creates a Validator for dates.
Creates a Validator for date/times
Return the list of default values.
Returns a description of the option.
Returns a description of the option.
Returns a description of the option.
Returns a description of the option.
Returns a description of the option.
Return the display settings.
Return the option exception
Returns a FileValidator
for existing directories.
Returns a FileValidator
for existing files.
Returns a FileValidator
for existing files/directories.
Return the format being used to validate argument values against.
Gets the date formats permitted.
Return the full usage display settings.
Return the gutter center string.
Return the gutter left string.
Return the gutter right string.
Return the header string.
Returns the id of the option.
Returns the id of the option.
Returns the initial separator character or
'\0' if no character has been set.
Returns the initial separator character or
'\0' if no character has been set.
Returns a NumberValidator
for an integer number format
for the current default locale.
Return the line usage settings.
Retrieves the maximum number of values acceptable for a valid Argument
Retrieves the maximum number of values acceptable for a valid Argument
Returns the maximum date permitted.
Retrieves the maximum number of members acceptable for a valid Group
Retrieves the maximum number of values acceptable for a valid Argument
Return the maximum value allowed for an argument value.
Return the exception message.
Returns the message for the specified key.
Returns the message for the specified key and argument.
Returns the message for the specified key and arguments.
Returns the message for the specified key and arguments.
Returns the message for the specified key and arguments.
Retrieves the minimum number of values required for a valid Argument
Retrieves the minimum number of values required for a valid Argument
Returns the minimum date permitted.
Retrieves the minimum number of members required for a valid Group
Retrieves the minimum number of values required for a valid Argument
Return the minimum value allowed for an argument value.
Return the normalized collection.
Returns a NumberValidator
for a general-purpose
number format for the current default locale.
Gets the Option the exception relates to
Finds the Option with the specified trigger
Finds the Option with the specified trigger
Finds the Option with the specified trigger
Finds the Option with the specified trigger
Finds the Option with the specified trigger
Retrieves the number of times the specified Option appeared in this
CommandLine
Retrieves the number of times the specified Option appeared in this
CommandLine
Retrieves the number of times the specified Option appeared in this
CommandLine
Retrieves the number of times the specified Option appeared in this
CommandLine
Retrieves a list of all Options found in this CommandLine
Retrieves a list of all Options found in this CommandLine
Gets the member Options of thie Group.
Retrieves a list of all Options found in this CommandLine
Retrieves a list of all Options found in this CommandLine
Retrieves a list of all Options found in this CommandLine
Retrieves a list of all Option triggers found in this CommandLine
Retrieves a list of all Option triggers found in this CommandLine
Retrieves a list of all Option triggers found in this CommandLine
Retrieves a list of all Option triggers found in this CommandLine
Retrieves a list of all Option triggers found in this CommandLine
Returns a NumberValidator
for a percentage format
for the current default locale.
The preferred name of an option is used for generating help and usage
information.
The preferred name of an option is used for generating help and usage
information.
The preferred name of an option is used for generating help and usage
information.
The preferred name of an option is used for generating help and usage
information.
The preferred name of an option is used for generating help and usage
information.
The preferred name of an option is used for generating help and usage
information.
The preferred name of an option is used for generating help and usage
information.
Identifies the argument prefixes that should be considered options.
Identifies the argument prefixes that should be considered options.
Identifies the argument prefixes that should be considered options.
Identifies the argument prefixes that should be considered options.
Identifies the argument prefixes that should be considered options.
Identifies the argument prefixes that should be considered options.
Identifies the argument prefixes that should be considered options.
Retrieves the set of all property names associated with this CommandLine
Retrieves the set of all property names associated with this CommandLine
Retrieves the set of all property names associated with this CommandLine
Retrieves the set of all property names associated with this CommandLine
Retrieves the set of all property names associated with this CommandLine
Retrieves the value associated with the specified property
Retrieves the value associated with the specified property
Retrieves the value associated with the specified property
Retrieves the value associated with the specified property
Retrieves the value associated with the specified property
Retrieves the value associated with the specified property
Retrieves the value associated with the specified property
Returns the protocol that must be used by a valid URL.
Gets the ResourceHelper appropriate to the specified class.
Return the shell command.
Returns the subsequent separator character.
Retrieves the Boolean value associated with the specified Switch
Retrieves the Boolean value associated with the specified Switch
Retrieves the Boolean value associated with the specified Switch
Retrieves the Boolean value associated with the specified Switch
Retrieves the Boolean value associated with the specified Switch
Retrieves the Boolean value associated with the specified Switch
Retrieves the Boolean value associated with the specified Switch
Retrieves the Boolean value associated with the specified Switch
Retrieves the Boolean value associated with the specified Switch
Retrieves the Boolean value associated with the specified Switch
Retrieves the Boolean value associated with the specified Switch
Creates a Validator for times.
Identifies the argument prefixes that should trigger this option.
Identifies the argument prefixes that should trigger this option.
Identifies the argument prefixes that should trigger this option.
Identifies the argument prefixes that should trigger this option.
Identifies the argument prefixes that should trigger this option.
Identifies the argument prefixes that should trigger this option.
Identifies the argument prefixes that should trigger this option.
Return the argument validator.
Returns the Set of valid argument values.
Retrieves the single Argument value associated with the specified Option
Retrieves the single Argument value associated with the specified Option
Retrieves the single Argument value associated with the specified Option
Retrieves the single Argument value associated with the specified Option
Retrieves the single Argument value associated with the specified Option
Retrieves the single Argument value associated with the specified Option
Retrieves the single Argument value associated with the specified Option
Retrieves the single Argument value associated with the specified Option
Retrieves the Argument values associated with the specified Option
Retrieves the Argument values associated with the specified Option
Retrieves the Argument values associated with the specified Option
Retrieves the Argument values associated with the specified Option
Retrieves the Argument values associated with the specified Option
Retrieves the Argument values associated with the specified Option
Retrieves the Argument values associated with the specified Option
Retrieves the Argument values associated with the specified Option
Retrieves the Argument values associated with the specified Option
Retrieves the Argument values associated with the specified Option
Retrieves the Argument values associated with the specified Option
An Option representing a choice or group of Options in the form "-a|-b|-c".
Creates a new GroupBuilder
Forces Group instances to appear at the beginning of lists
An implementation of Group
Creates a new GroupImpl using the specified parameters.
Forces Group instances to appear at the end of lists
An Option that can have an argument and/or group of child Options in the form
"-f <arg> [-a|-b|-c]".
A base implementation of Parent providing limited ground work for further
Parent implementations.
Creation of a new ParaentImpl.
Parse the arguments according to the specified options and properties.
Parse the arguments according to the specified options and properties and
displays the usage screen if the CommandLine is not valid or the help
option was specified.
A class that implements the
Parser
interface can parse a
String array according to the
Group
specified and return a
CommandLine
.
Builds Options using a String pattern
Creates a new PatternBuilder
Creates a new PatternBuilder
A CommandLine implementation using the Preferences API, useful when
constructing a complex DefaultingCommandLine
This implementation uses the children of a single preference node to populate
the CommandLine.
Creates a new PreferencesCommandLine using the specified root Option and
Preferences node.
Creates a new PreferencesCommandLine using the specified root Option,
Preferences node and value separator.
Orders Options by preferredName
Orders Options by preferredName, reversed
Prints the m_divider text
Prints any error message.
Prints a m_footer string if necessary
Prints the left gutter string
Prints the right gutter string
Prints a m_header string if necessary
Prints detailed help per option.
Prints a single line of usage information (wrapping if necessary)
Prints a string wrapped if necessary
Processes String arguments into a CommandLine.
Processes String arguments into a CommandLine.
Processes String arguments into a CommandLine.
Processes String arguments into a CommandLine.
Processes String arguments into a CommandLine.
Processes the parent part of the Option.
Processes the parent part of the Option.
Processes the "README" style element of the argument.
Processes the "README" style element of the argument.
A CommandLine implementation using a java Properties instance, useful for
constructing a complex DefaultingCommandLine
Options are keyed from their property name and presence in the Properties
instance is taken as presence in the CommandLine.
Creates a new PropertiesCommandLine using the specified root Option,
Properties instance.
Creates a new PropertiesCommandLine using the specified root Option,
Properties instance and value separator.
Handles the java style "-Dprop=value" opions
Creates a new PropertyOption using the default settings of a "-D" trigger
and an id of 'D'
Creates a new PropertyOption using the specified parameters
Specifies the ClassLoader
used to resolve and load
the classes specified by the argument values.
The Comparator to use when sorting Options
Sets the default state for a Switch in the CommandLine.
Sets the default values for an Option in the CommandLine
Specifies whether the argument values must represent directories.
The DisplaySettings used to select the help lines in the main body of
help
Sets the string to use as a m_divider between sections of help
Sets the exception to document
Specifies whether the argument values must represent existing
files/directories.
Specifies whether the argument values must represent files.
Sets the footer text of the help screen
Sets the date format permitted.
Specify the format being used to validate argument values against.
Sets the date formats permitted.
Sets the date formats permitted.
The DisplaySettings used to select the elements to display in the
displayed line of full usage information.
Sets the Group of Options to document
Sets the Group of options to parse against
Sets the header text of the help screen
Sets the HelpFormatter to use with the simplified parsing.
Sets the help option to use with the simplified parsing.
Sets the help option to use with the simplified parsing.
Specifies whether the argument value must represent a
class that can be instantiated.
Sets the DisplaySettings used to select elements in the per helpline
usage strings.
Specifies whether the argument value must represent a
class that is loadable.
Sets the maximum Date to the specified value.
Specify the maximum value allowed for an argument value.
Sets the minimum Date to the specified value.
Specify the minimum value allowed for an argument value.
Specifies the protocol that a URL must have to be valid.
Sets the command string used to invoke the application
Specifies the Set of valid argument values.
Source dest must enforce values error constant.
An Argument implementation that allows a variable size Argument to precede a
fixed size argument.
Creates a SourceDestArgument using defaults where possible.
Creates a SourceDestArgument using the specified parameters.
If there are any leading or trailing quotes remove them from the
specified token.
A Parent implementation representing normal switch options.
Creates a new Switch with the specified parameters
Switch already set error constant.
Switch disabled starts with enabled error constant.
Switch enabled starts with disabled error constant.
Illegal duplicate prefix error constant.
Illegal disabled prefix error constant.
Preferenced commmand name too long error constant.
No disabled prefix error constant.
No enabled prefix error constant.
Switch preferred name too short error constant.
Creates a new SwitchBuilder using defaults.
Creates a new SwitchBuilder
Forces Switch instances to appear at the beginning of lists
Forces Switch instances to appear at the end of lists