|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.symbian.et.test.cmdline.CmdLineSet
class that modelizes a group of commands, typically corresponds to a tool
Field Summary | |
private java.util.ArrayList |
iCmds
|
private org.apache.commons.cli.CommandLineParser |
iParser
|
Constructor Summary | |
CmdLineSet()
standard constructor for users interested in using the ToolEnvironment class |
Method Summary | |
void |
add(CmdLine aCmd)
add a command to a command set |
CmdLine |
find(java.lang.String aCommand)
find a command in a command set given a command name |
void |
printCmds()
print all the commands available (with a short description) for a particular command set |
void |
printCopyright()
print the copyright notice associated to the command set |
void |
printToolName()
print the name of the tool associated to the command set |
void |
printVersion()
print the version of the tool associated to the command set |
java.lang.Object |
processCommand(java.lang.String[] aArgs)
process a command |
void |
remove(CmdLine aCmd)
remove a command from a command set |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.ArrayList iCmds
private org.apache.commons.cli.CommandLineParser iParser
Constructor Detail |
public CmdLineSet()
Method Detail |
public void printCmds()
public java.lang.Object processCommand(java.lang.String[] aArgs) throws CmdLineException
aArgs
- array of parameters provided by the user
CmdLineException
- if command line is incorrectpublic final CmdLine find(java.lang.String aCommand)
aCommand
- command name to find
public void add(CmdLine aCmd)
aCmd
- command to addpublic void remove(CmdLine aCmd)
aCmd
- command to removepublic void printVersion()
public void printToolName()
public void printCopyright()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |