|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.axis.utils.CLArgsParser
Parser for command line arguments.
This parses command lines according to the standard (?) of GNU utilities. Note: This is still used in 1.1 libraries so do not add 1.2+ dependencies.
Constructor Summary | |
CLArgsParser(java.lang.String[] args,
CLOptionDescriptor (src) [] optionDescriptors)
Create a parser that deals with options and parses certain args. |
|
CLArgsParser(java.lang.String[] args,
CLOptionDescriptor (src) [] optionDescriptors,
ParserControl (src) control)
Create a parser that can deal with options and parses certain args. |
Method Summary | |
CLOption (src) |
getArgumentById(int id)
Retrieve the CLOption (src) with specified id, or
null if no command line option is found. |
CLOption (src) |
getArgumentByName(java.lang.String name)
Retrieve the CLOption (src) with specified name, or
null if no command line option is found. |
java.util.Vector |
getArguments()
Retrieve a list of options that were parsed from command list. |
java.lang.String |
getErrorString()
Retrieve an error message that occured during parsing if one existed. |
java.lang.String[] |
getUnparsedArgs()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CLArgsParser(java.lang.String[] args, CLOptionDescriptor (src) [] optionDescriptors, ParserControl (src) control)
public CLArgsParser(java.lang.String[] args, CLOptionDescriptor (src) [] optionDescriptors)
Method Detail |
public final java.lang.String[] getUnparsedArgs()
public final java.util.Vector getArguments()
public final CLOption (src) getArgumentById(int id)
CLOption
(src) with specified id, or
null
if no command line option is found.
id
- the command line option id
CLOption
(src) with the specified id, or
null
if no CLOption is found.CLOption
(src) public final CLOption (src) getArgumentByName(java.lang.String name)
CLOption
(src) with specified name, or
null
if no command line option is found.
name
- the command line option name
CLOption
(src) with the specified name, or
null
if no CLOption is found.CLOption
(src) public final java.lang.String getErrorString()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |