|
|||||||||
| Home >> All >> com >> thermidor >> [ xml overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.thermidor.xml
Class ParserGenerator

java.lang.Objectcom.thermidor.xml.ParserGenerator
- public class ParserGenerator
- extends java.lang.Object
The parser generator generates TEMPLATE implemntation BASE classes only it is not a full blown code generator.
| Field Summary | |
private java.util.LinkedList |
attributes
The attributes that are declared in the DTD |
private java.util.LinkedList |
elements
The elements that are declared in the DTD. |
private java.lang.String |
parserBaseName
The base name of the abstract parser to create |
private java.lang.String |
parserGeneratorName
The name of the parser generator |
private java.lang.String |
parserGeneratorVersion
The version of the parser generator |
private java.lang.String |
parserPackageName
The package name that it should have. |
| Constructor Summary | |
ParserGenerator()
|
|
| Method Summary | |
void |
emitBase(java.io.PrintWriter pw)
Emit the source file that corresponds to the properties that have been specified in the input porpoerties file. |
private java.lang.String |
javaName(java.lang.String s)
Convert the specified string into a valid java identifier. |
static void |
main(java.lang.String[] argv)
The main entry point to the program. |
private static void |
messageError(java.lang.String err)
Display an error message an exit. |
private static java.util.LinkedList |
tokenizeToList(java.lang.String t)
Convert the specified token string into a lisdt of tokens |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
parserGeneratorName
private java.lang.String parserGeneratorName
- The name of the parser generator
parserGeneratorVersion
private java.lang.String parserGeneratorVersion
- The version of the parser generator
parserBaseName
private java.lang.String parserBaseName
- The base name of the abstract parser to create
parserPackageName
private java.lang.String parserPackageName
- The package name that it should have.
attributes
private java.util.LinkedList attributes
- The attributes that are declared in the DTD
elements
private java.util.LinkedList elements
- The elements that are declared in the DTD.
| Constructor Detail |
ParserGenerator
public ParserGenerator()
| Method Detail |
tokenizeToList
private static java.util.LinkedList tokenizeToList(java.lang.String t)
- Convert the specified token string into a lisdt of tokens
messageError
private static void messageError(java.lang.String err)
- Display an error message an exit.
main
public static void main(java.lang.String[] argv) throws java.lang.Exception
- The main entry point to the program.
javaName
private java.lang.String javaName(java.lang.String s)
- Convert the specified string into a valid java identifier.
emitBase
public void emitBase(java.io.PrintWriter pw) throws java.io.IOException
- Emit the source file that corresponds to the properties that have been
specified in the input porpoerties file.
|
|||||||||
| Home >> All >> com >> thermidor >> [ xml overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.thermidor.xml.ParserGenerator