|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TemplateProcessor
A Template Processor can process templates and evaluate expressions.
| Method Summary | ||
|---|---|---|
|
evaluate(String expression,
Class<T> type,
T defaultValue)
Evaluates an expression within the scope of this processor's context. |
|
TemplateContext |
getTemplateContext()
|
|
void |
processChildNodes(Node result,
Node source)
Process the children of an element or document. |
|
void |
processRepeat(Node result,
Element element,
Iterable<?> dataList,
Runnable onEachLoop)
|
|
DocumentFragment |
processTemplate(Element template,
TemplateContext templateContext,
javax.el.ELResolver globals,
TagRegistry registry)
Process an entire template. |
|
| Method Detail |
|---|
DocumentFragment processTemplate(Element template,
TemplateContext templateContext,
javax.el.ELResolver globals,
TagRegistry registry)
template - the DOM template, typically a script elementtemplateContext - a template context providing top-level
variablesglobals - ELResolver providing global variables other
than those in the templateContext
TemplateContext getTemplateContext()
void processChildNodes(Node result,
Node source)
result - the node to which results should be appendedsource - the node whose children should be processed
void processRepeat(Node result,
Element element,
Iterable<?> dataList,
Runnable onEachLoop)
<T> T evaluate(String expression,
Class<T> type,
T defaultValue)
expression - The String expressiontype - Expected result typedefaultValue - Default value to return
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||