|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.sahits.codegen.input.XMLJDomParser
ch.sahits.codegen.java.input.XMLTableParser
public final class XMLTableParser
This XML parser can parse an XML file that represents a database table.
| Field Summary |
|---|
| Fields inherited from class ch.sahits.codegen.input.XMLJDomParser |
|---|
document, root |
| Constructor Summary | |
|---|---|
XMLTableParser()
Default constructor |
|
XMLTableParser(java.lang.String inputFile)
Initialize the parser with the input file |
|
| Method Summary | |
|---|---|
IGeneratedJavaClass |
generateModel(java.lang.String className,
java.lang.String packageName,
boolean isPublic,
boolean isAbstract,
boolean isFinal)
Convert the XML file into a model object |
int |
getWorkload()
Defines how complex the generation of the model is. |
void |
init(java.lang.String path2XML)
Initialize the XML file for parsing |
boolean |
isInitialized()
Check whether the the object is properly initialized |
EDBConnectionData |
needsDataBaseInformationForCompleetion()
Indicate if the input file is self contained or if for compleetion of the model information from the second page is needed. |
| Methods inherited from class ch.sahits.codegen.input.XMLJDomParser |
|---|
getAllAttributes, getAllElements, getAttributeValue, getFileExtension, getFirstElement, getParserName, getPredecessor, getRanking, hasChild, hasChild, hasText, lookup, parse, setNamespace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ch.sahits.codegen.java.input.IXMLJavaInputFileParser |
|---|
parse |
| Methods inherited from interface ch.sahits.codegen.input.IInputParser |
|---|
getFileExtension, getRanking |
| Constructor Detail |
|---|
public XMLTableParser(java.lang.String inputFile)
throws JDOMException,
java.io.IOException
inputFile - input XML file
java.io.IOException
JDOMExceptionpublic XMLTableParser()
| Method Detail |
|---|
public void init(java.lang.String path2XML)
init in interface IInputParserinit in class XMLJDomParserpath2XML - absolute path to the XML filepublic boolean isInitialized()
isInitialized in interface IXMLInputFileParser
public IGeneratedJavaClass generateModel(java.lang.String className,
java.lang.String packageName,
boolean isPublic,
boolean isAbstract,
boolean isFinal)
generateModel in interface IXMLJavaInputFileParserclassName - name of the class to be generatedpackageName - Name of the package the class resides inisPublic - is the class bublicisAbstract - is the class abstractisFinal - is the class final
DataBaseTable modelpublic int getWorkload()
getWorkload in interface IInputParserpublic EDBConnectionData needsDataBaseInformationForCompleetion()
needsDataBaseInformationForCompleetion in interface IInputParser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||