|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sf.codejen.CodeGenerator
public class CodeGenerator
Code generator
Constructor Summary | |
---|---|
CodeGenerator()
|
|
CodeGenerator(List<Template> config)
Constructs the code generator with a list of templates. |
|
CodeGenerator(String fileName)
Constructs the code generator with the filename of the configuration. |
Method Summary | |
---|---|
List<Throwable> |
getErrors()
Returns the error during the code generation. |
void |
parseConfiguration(String fileName)
Parses the codegen config. |
void |
resetConfiguration()
Clears the codegen config. |
void |
run()
Runs the code generation process. |
void |
setModel(Object model)
Sets the data model. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CodeGenerator()
public CodeGenerator(String fileName) throws IOException, SAXException
fileName
- the file name of codegen config.
IOException
- when error is encounter in file reading
SAXException
- when error is encounter in config parsingpublic CodeGenerator(List<Template> config)
config
- Method Detail |
---|
public void run()
public void parseConfiguration(String fileName) throws IOException, SAXException
fileName
- the file name of the codegen config.
IOException
- when error is encounter in file reading
SAXException
- when error is encounter in config parsingpublic void setModel(Object model)
model
- the data model to be used.public List<Throwable> getErrors()
public void resetConfiguration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |