public class Template extends AbstractPart
TemplateContext that can be
used to store filters, accessors, plugins, providers, and template
objects that are used for all render passes of this template.| Modifier and Type | Field and Description |
|---|---|
protected List<Part> |
parts
The parts this part contains.
|
| Constructor and Description |
|---|
Template()
Creates a new template.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Part part)
Adds the given part.
|
TemplateContext |
getInitialContext()
Returns the initial context of this template.
|
Iterator<Part> |
iterator() |
void |
render(TemplateContext templateContext,
Writer writer)
Renders this part.
|
getColumn, getLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic TemplateContext getInitialContext()
public void add(Part part)
part - The part to addpublic void render(TemplateContext templateContext, Writer writer) throws TemplateException
render in interface ParttemplateContext - The template context for the partwriter - The writer to render the part toTemplateException - if a template variable can not be parsedCopyright © 2026. All rights reserved.