public class InterpretedTemplate extends AbstractTemplate
EVEN_PREFIX, FIRST_PREFIX, INDEX_PREFIX, LAST_PREFIX, ODD_PREFIX| Constructor and Description |
|---|
InterpretedTemplate(String template,
String sourceName,
Engine engine) |
| Modifier and Type | Method and Description |
|---|---|
List<ErrorEntry> |
getStaticErrors() |
List<VariableDescription> |
getUsedVariableDescriptions() |
Set<String> |
getUsedVariables() |
String |
toString() |
String |
transform(Map<String,Object> model,
Locale locale,
ModelAdaptor modelAdaptor,
ProcessListener processListener)
Transforms a template into an expanded output using the given model.
|
transform, transformpublic Set<String> getUsedVariables()
getUsedVariables in interface TemplategetUsedVariables in class AbstractTemplatepublic List<ErrorEntry> getStaticErrors()
public List<VariableDescription> getUsedVariableDescriptions()
public String transform(Map<String,Object> model, Locale locale, ModelAdaptor modelAdaptor, ProcessListener processListener)
AbstractTemplatetransform in interface Templatetransform in class AbstractTemplatemodel - the model used to evaluate expressions inside the templatelocale - the locale used to render this templatemodelAdaptor - adaptor used for this transformation to look up values from
modelCopyright © 2017. All rights reserved.