|
||||||||||
| 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.xml.XMLParserWithoutDB
public final class XMLParserWithoutDB
This XML parser parses an XML file of the format
<bean> <modelgenerator>ch.sahits.codegen.xml.XMLParserWithoutDB</modelgenerator> <attribute>ch.sahits.codegen.example.Name</attribute> <attribute>ch.sahits.codegen.example.Description</attribute> <attribute>ch.sahits.codegen.example.Message</attribute> </bean>This creates a simple bean. Since this is an example for generating something without a database in the back we would need some other model than
DataBaseTable.
But for conveniance sake we create a DataBaseTable of it.
| Field Summary | |
|---|---|
static java.lang.String |
PLUGIN_ID
Plugin-ID |
| Fields inherited from class ch.sahits.codegen.input.XMLJDomParser |
|---|
document, root |
| Constructor Summary | |
|---|---|
XMLParserWithoutDB()
Default constructor |
|
| Method Summary | |
|---|---|
IGeneratedJavaClass2 |
generateModel(java.lang.String className)
Create a Bean model based on a DataBaseTable |
IGeneratedJavaClass |
generateModel(java.lang.String className,
java.lang.String packageName,
boolean isPublic,
boolean isAbstract,
boolean isFinal)
Pass the call to generateModel(String) |
int |
getWorkload()
Defines how complex the generation of the model is. |
void |
init(java.lang.String inputFile)
Initialize the XML file |
boolean |
isInitialized()
Check whether the class is correctly initialized by calling init(String) successfully |
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 |
| Field Detail |
|---|
public static final java.lang.String PLUGIN_ID
| Constructor Detail |
|---|
public XMLParserWithoutDB()
| Method Detail |
|---|
public void init(java.lang.String inputFile)
init in interface IInputParserinit in class XMLJDomParserinputFile - Input parserpublic IGeneratedJavaClass2 generateModel(java.lang.String className)
DataBaseTable
className - Name of the class to be generated
public boolean isInitialized()
init(String) successfully
isInitialized in interface IXMLInputFileParserpublic int getWorkload()
getWorkload in interface IInputParser
public IGeneratedJavaClass generateModel(java.lang.String className,
java.lang.String packageName,
boolean isPublic,
boolean isAbstract,
boolean isFinal)
generateModel(String)
generateModel in interface IXMLJavaInputFileParserclassName - Name of the classpackageName - nullisPublic - falseisAbstract - falseisFinal - false
public EDBConnectionData needsDataBaseInformationForCompleetion()
needsDataBaseInformationForCompleetion in interface IInputParser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||