|
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.JJGenerator
| Field Summary | |
|---|---|
java.util.Hashtable |
matchAllMethods
|
java.util.Hashtable |
matchClassName
|
java.util.TreeMap |
matchTokens
|
| 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 | |
|---|---|
JJGenerator()
Constructor, setting package name to |
|
| Method Summary | |
|---|---|
void |
generate()
Generate the JavaCC Grammar matching XML documents corresponding to a given DTD. |
DTDdocument |
getDocument()
Return the DTD document. |
Element |
getRootElement()
Find and returns the element at the root of the current DTD document. |
void |
prepare(java.io.Reader dtdReader)
Prepare the JavaCC Grammar generation by reading the DTD and preparing internal variable states. |
void |
setOutputDirectory(java.lang.String outputDirectory)
Set the output directory for the JavaCC generated file. |
void |
setOutputFileName(java.lang.String outputFileName)
Set the name of the output 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 |
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
public java.util.Hashtable matchAllMethods
public java.util.TreeMap matchTokens
| Constructor Detail |
|---|
public JJGenerator()
| Method Detail |
|---|
public void setVerbose(boolean mode)
mode - public void setPackageName(java.lang.String packageName)
packageName - Name of the packagepublic void setOutputDirectory(java.lang.String outputDirectory)
outputDirectory - Name of the directorypublic void setParserClass(java.lang.String parserClass)
parserClass - Name of the parser classpublic void setOutputFileName(java.lang.String outputFileName)
outputFileName - Output FileName (no directory information)public DTDdocument getDocument()
public Element getRootElement()
public void prepare(java.io.Reader dtdReader)
throws ParseException,
DTDException
dtdReader - Reader for the DTD input stream
ParseException
DTDException
public void generate()
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 | ||||||||||