|
DTD2Java API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectch.perseguers.xml.dtd.util.ExampleGenerator
| Field Summary | |
|---|---|
java.util.Hashtable |
matchClassName
|
| Fields inherited from interface ch.perseguers.xml.dtd.util.UtilConstants |
|---|
CLASS_PREFIX_NAME, DTD2JAVA_RESERVED, FILE_SEP, JAVA_15_RESERVED, JAVA_RESERVED, MATCH_PREFIX_METHOD_NAME, MULT_CLASS_ONE, MULT_CLASS_ZERO_ONE, MULT_ONE_VECTOR, MULT_VECTOR, RESERVED_WORDS, TAB, TAB2, TAB3, TAB4, TAB5, TAB6 |
| Constructor Summary | |
|---|---|
ExampleGenerator()
Constructor, setting package name to |
|
| Method Summary | |
|---|---|
void |
generateExample()
Generate an example file named |
void |
setNoMethodSave(boolean state)
Do not generate method save for classes. |
void |
setOutputDirectory(java.lang.String outputDirectory)
Set the output directory for the generated example file. |
void |
setOutputFileName(java.lang.String outputFileName)
Set the output filename for the generated example file. |
void |
setPackageName(java.lang.String packageName)
Set the name of the package to use for the class. |
void |
setParserClass(java.lang.String parserClass)
Set the name of the parser class for the JavaCC generated file. |
void |
setRootElement(java.lang.String rootElement)
Set the DTD root element to use. |
void |
setVerbose(boolean mode)
Activate or Deactivate the verbose mode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.util.Hashtable matchClassName
| Constructor Detail |
|---|
public ExampleGenerator()
| Method Detail |
|---|
public void setVerbose(boolean mode)
mode - public void setParserClass(java.lang.String parserClass)
parserClass - Name of the parser classpublic void setPackageName(java.lang.String packageName)
packageName - Name of the packagepublic void setOutputDirectory(java.lang.String outputDirectory)
outputDirectory - Name of the directorypublic void setRootElement(java.lang.String rootElement)
rootElement - Root element name to use for generationpublic void setNoMethodSave(boolean state)
state - TRUE for not generating method savepublic void setOutputFileName(java.lang.String outputFileName)
outputFileName - Name of the example file
public void generateExample()
throws java.io.IOException
java.io.IOException
|
DTD2Java API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||