|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.socketelf.consumerfactory_imp.rose.TemplateProcessor
class TemplateProcessor
Used to construct the consumer source files.
Field Summary | |
---|---|
private freemarker.template.Configuration |
config
Used to configure Freemarker. |
private ConsumerDataModel |
dataModel
The consumer data model to merage with the Freemarker templates. |
private boolean |
valid
A flag to indicate the output was created. |
Constructor Summary | |
---|---|
TemplateProcessor(java.io.File templateDir,
ConsumerDataModel dataModel)
Constructs the TemplateProcessor class. |
Method Summary | |
---|---|
(package private) boolean |
execute(java.lang.String templateName,
java.io.File outputFile)
|
(package private) boolean |
isValid()
Used to check if the template is processed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private freemarker.template.Configuration config
private ConsumerDataModel dataModel
private boolean valid
Constructor Detail |
---|
TemplateProcessor(java.io.File templateDir, ConsumerDataModel dataModel)
templateDir
- The directory from which templates will be found.dataModel
- ConsumerDataModel to use when creating the output.Method Detail |
---|
boolean execute(java.lang.String templateName, java.io.File outputFile)
templateName
- The template to use when producing the output.outputFile
- The name of the output file.
boolean isValid()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |