|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sourceforge.ifx.tools.CodeGenerator
CodeGenerator uses JDOM to parse the IFX Schema file and build the source code for the IFX beans under the given directory.
Constructor Summary | |
CodeGenerator()
Default constructor. |
Method Summary | |
void |
buildBaseNameMap(org.jdom.Document doc,
java.lang.String packageRoot)
Builds a Map of bean names to fully qualified class names and populates a class global Map object. |
static void |
main(java.lang.String[] argv)
This is how we are called. |
void |
parseDocument(org.jdom.Document doc,
java.lang.String packageRoot)
Parses the Document object and generates the source for each of the elements in teh Document object. |
void |
run()
Parses the xsd file and hands off the generation of source files to the generateSource() method. |
void |
setInputFileName(java.lang.String filename)
Sets the name of the xsd file to be read to generate the beans. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CodeGenerator()
Method Detail |
public void setInputFileName(java.lang.String filename)
filename
- the name of the xsd file to read.public void run() throws java.lang.Exception
java.lang.Exception
- if any is thrown.public void buildBaseNameMap(org.jdom.Document doc, java.lang.String packageRoot) throws java.lang.Exception
packageRoot
- the package root for this Document. This
is the same as the default package root for the main document, but
is offset by the namespace for the imported Document objects.
java.lang.Exception
public void parseDocument(org.jdom.Document doc, java.lang.String packageRoot) throws java.lang.Exception
doc
- the Document object to parse.packageRoot
- the package root.
java.lang.Exception
- if one is thrown.public static void main(java.lang.String[] argv)
argv
- an array of arguments, only one is needed, its the
xsd file to read.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |