Logo Search packages:      
Sourcecode: uimaj version File versions  Download package

Classes | Public Member Functions | Private Attributes

org::apache::uima::internal::util::CommandLineParser Class Reference

Collaboration diagram for org::apache::uima::internal::util::CommandLineParser:
Collaboration graph
[legend]

List of all members.

Classes

class  CmdLineParam

Public Member Functions

boolean addAlias (String param, String alias)
boolean addParameter (String paramName, boolean hasArg)
boolean addParameter (String paramName)
 CommandLineParser ()
String getParamArgument (String paramName)
String[] getRestArgs ()
boolean isInArgsList (String paramName)
boolean isKnownParameter (String paramName)
void parseCmdLine (String[] args) throws Exception

Private Attributes

HashMap< CmdLineParam, String > cmdLineMap = null
HashMap< String, CmdLineParamparamMap = null
String[] restArgs

Detailed Description

Simple command line parsing utility.

The parser can only handle parameters that take 0 or 1 arguments. That is, you can parse command lines like

    doit -f -i file1 -o file2 --dir file3 /h file4 file5 file6
 

The syntax of parameters is left to the user, no common prefix is assumed or enforced. Parameter names can be arbitrarily long. You can define aliases for parameters: -h, /H and --help can all mean the same parameter if so configured.

Definition at line 41 of file CommandLineParser.java.


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index