org.apache.axis.utils
public final class CLArgsParser extends Object
Since: 4.0
Constructor Summary | |
---|---|
CLArgsParser(String[] args, CLOptionDescriptor[] optionDescriptors, ParserControl control)
Create a parser that can deal with options and parses certain args.
| |
CLArgsParser(String[] args, CLOptionDescriptor[] optionDescriptors)
Create a parser that deals with options and parses certain args.
|
Method Summary | |
---|---|
CLOption | getArgumentById(int id)
Retrieve the {@link CLOption} with specified id, or
null if no command line option is found.
|
CLOption | getArgumentByName(String name)
Retrieve the {@link CLOption} with specified name, or
null if no command line option is found.
|
Vector | getArguments()
Retrieve a list of options that were parsed from command list.
|
String | getErrorString()
Retrieve an error message that occured during parsing if one existed.
|
String[] | getUnparsedArgs() |
Parameters: args the args, typically that passed to the
public static void main(String[] args)
method. optionDescriptors the option descriptors
Parameters: args the args optionDescriptors the option descriptors
null
if no command line option is found.
Parameters: id the command line option id
Returns: the {@link CLOption} with the specified id, or
null
if no CLOption is found.
See Also: CLOption
null
if no command line option is found.
Parameters: name the command line option name
Returns: the {@link CLOption} with the specified name, or
null
if no CLOption is found.
See Also: CLOption
Returns: the list of options
Returns: the error string