public abstract class AbstractGenerator extends Object implements Generator
| Constructor and Description |
|---|
AbstractGenerator() |
| Modifier and Type | Method and Description |
|---|---|
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
|
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 nameprotected String getFirstCaps(String strValue)
strValue - The value to be transformedprotected Map<String,Object> getModel(PluginModel pm)
pm - The plugin modelprotected String build(PluginModel pm)
pm - The plugin modelprotected String build(String strTemplate, PluginModel pm)
strTemplate - The code templatepm - The plugin modelprotected String build(Map<String,Object> model)
model - The modelCopyright © 2017 City of Paris. All rights reserved.