|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jcommando.JCommandParser org.jcommando.GeneratedParser org.jcommando.JCommandoGen
This class generates a command parser based on an XML input file.
Field Summary |
Fields inherited from class org.jcommando.JCommandParser |
commands, commandsById, optionsById, optionsByLong, optionsByShort |
Constructor Summary | |
JCommandoGen()
Empty constructor. |
Method Summary | |
void |
doGenerate()
Generate a parser from an XML command file. |
java.lang.String |
getClassName()
|
java.lang.String |
getDestDir()
|
java.lang.String |
getInputFile()
|
java.lang.String |
getPackageName()
|
static void |
main(java.lang.String[] args)
The "main" that generates the command parser. |
void |
setClassName(java.lang.String clazz)
Set the classname. |
void |
setDestDir(java.lang.String dest)
Set the destination directory. |
void |
setHelp()
Call the super-class. |
void |
setInputFile(java.lang.String file)
Set the source command file. |
void |
setPackageName(java.lang.String pkg)
Set the package name. |
Methods inherited from class org.jcommando.JCommandParser |
addCommand, addOption, getOptionById, parse, printUsage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JCommandoGen()
Method Detail |
public static void main(java.lang.String[] args)
args
- command line argumentspublic void doGenerate()
doGenerate
in class GeneratedParser
public void setDestDir(java.lang.String dest)
setDestDir
in class GeneratedParser
dest
- the name of the destination directorypublic void setInputFile(java.lang.String file)
setInputFile
in class GeneratedParser
file
- the name of the source filepublic void setClassName(java.lang.String clazz)
setClassName
in class GeneratedParser
clazz
- the name of the parser class to generatepublic void setPackageName(java.lang.String pkg)
setPackageName
in class GeneratedParser
pkg
- the name of package the generated class should reside inpublic java.lang.String getClassName()
public java.lang.String getDestDir()
public java.lang.String getInputFile()
public java.lang.String getPackageName()
public void setHelp()
setHelp
in class GeneratedParser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |