|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.pluginwizard.service.generator.AbstractGenerator
public abstract class AbstractGenerator
AbstractGenerator
Constructor Summary | |
---|---|
AbstractGenerator()
|
Method Summary | |
---|---|
protected String |
build(Map<String,Object> model)
Build the code |
protected String |
build(PluginModel pm)
Build the code |
protected String |
build(String strTemplate,
Map<String,Object> model)
Build the code |
protected String |
build(String strTemplate,
PluginModel pm)
Build the code |
protected String |
getFilePath(PluginModel pm,
String strPath,
String strFilename)
Build the file path |
protected String |
getFirstCaps(String strValue)
Returns the value of a string with first letter in caps |
protected Map<String,Object> |
getModel(PluginModel pm)
Return the model filled with the plugin model |
String |
getTemplate()
Returns the Template |
void |
setTemplate(String strTemplate)
Sets the Template |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.paris.lutece.plugins.pluginwizard.service.generator.Generator |
---|
generate |
Constructor Detail |
---|
public AbstractGenerator()
Method Detail |
---|
public String getTemplate()
public void setTemplate(String strTemplate)
strTemplate
- The Templateprotected String getFilePath(PluginModel pm, String strPath, String strFilename)
pm
- The Plugin ModelstrPath
- The relative pathstrFilename
- The file name
protected String getFirstCaps(String strValue)
strValue
- The value to be transformed
protected Map<String,Object> getModel(PluginModel pm)
pm
- The plugin model
protected String build(PluginModel pm)
pm
- The plugin model
protected String build(String strTemplate, PluginModel pm)
strTemplate
- The code templatepm
- The plugin model
protected String build(Map<String,Object> model)
model
- The model
protected String build(String strTemplate, Map<String,Object> model)
strTemplate
- The code templatemodel
- The model
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |