public abstract class Generator extends Object
| Constructor and Description |
|---|
Generator() |
| Modifier and Type | Method and Description |
|---|---|
freemarker.template.Template |
createTemplate(String path)
Create a template for the generators to use.
|
Map<String,Object> |
createTemplateArguments(MolgenisOptions options)
Create default template arguments such as date, version etc.
|
abstract void |
generate(Model model,
MolgenisOptions options) |
void |
generate(Model model,
MolgenisOptions options,
String generatedPath) |
abstract String |
getDescription() |
String |
getDocumentationPath(MolgenisOptions options)
Generate the path for the generated documentation code.
|
String |
getExtension()
Extension varies based on output type, i.e., .java, R, sql etc.
|
String |
getHandWrittenPath(MolgenisOptions options) |
String |
getProjectPath(MolgenisOptions options)
Path for the whole project
|
String |
getSourcePath(MolgenisOptions options)
Generate the path for the generated source code.
|
String |
getWebserverPath(MolgenisOptions options)
Path for the web sites
|
protected final String APP_DIR
public abstract void generate(Model model, MolgenisOptions options) throws Exception
Exceptionpublic void generate(Model model, MolgenisOptions options, String generatedPath) throws Exception
Exceptionpublic freemarker.template.Template createTemplate(String path) throws Exception
path - Exceptionpublic Map<String,Object> createTemplateArguments(MolgenisOptions options)
public String getProjectPath(MolgenisOptions options)
public String getWebserverPath(MolgenisOptions options)
public String getSourcePath(MolgenisOptions options)
options - public String getHandWrittenPath(MolgenisOptions options)
public String getDocumentationPath(MolgenisOptions options)
options - public String getExtension()
public abstract String getDescription()
Copyright © 2015. All Rights Reserved.