public interface TemplateEntry
TemplateParser
.
The node can either be branching (condition, context switch) or a leaf node (variable, static text).
The root node, representing the entire template is also a TemplateEntry
.Modifier and Type | Method and Description |
---|---|
void |
appendText(java.lang.StringBuilder result,
TemplateEngineDataProvider dataProvider)
Execute this template by generating text for a given data provider.
|
boolean |
isValid(TemplateEngineDataProvider dataProvider)
Check if this template is applicable to the given data provider.
|
void appendText(java.lang.StringBuilder result, TemplateEngineDataProvider dataProvider)
result
- the StringBuilder
to append the text todataProvider
- the data provider from which information should be compiled to a stringboolean isValid(TemplateEngineDataProvider dataProvider)
dataProvider
- the data provider to check