public class AbstractGenerator extends Object implements org.tentackle.validate.ScopeConfigurator, org.tentackle.validate.Validateable
| Constructor and Description |
|---|
AbstractGenerator() |
| Modifier and Type | Method and Description |
|---|---|
freemarker.template.Configuration |
createFreemarkerConfiguration()
Creates the freemarker configuration.
|
Class<? extends org.tentackle.validate.ValidationScope>[] |
getDefaultScopes() |
void |
setTemplateDirectory(File templateDirectory)
Sets the freemarker template directory.
|
List<org.tentackle.validate.ValidationResult> |
validate(String validationPath,
org.tentackle.validate.ValidationScope scope) |
public void setTemplateDirectory(File templateDirectory)
templateDirectory - the template directorypublic freemarker.template.Configuration createFreemarkerConfiguration()
throws IOException
IOException - if there's some trouble with the template directorypublic Class<? extends org.tentackle.validate.ValidationScope>[] getDefaultScopes()
getDefaultScopes in interface org.tentackle.validate.ScopeConfiguratorTentackle - distributed, domain- and model-driven