public abstract class BaseTemplateDirectiveModel extends Object implements freemarker.template.TemplateDirectiveModel
| Constructor and Description |
|---|
BaseTemplateDirectiveModel() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getOptionalSimpleScalarParameter(Map<?,?> params,
String name)
Get the parameter, or "null" if the parameter is not provided.
|
protected String |
getRequiredSimpleScalarParameter(Map<?,?> params,
String name)
Get the parameter, or throw an exception.
|
abstract Map<String,Object> |
help(String name) |
static String |
processTemplateToString(String templateName,
Map<String,Object> map,
freemarker.core.Environment env) |
public static String processTemplateToString(String templateName, Map<String,Object> map, freemarker.core.Environment env)
protected String getRequiredSimpleScalarParameter(Map<?,?> params, String name) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelExceptionCopyright © 2021. All rights reserved.