public abstract class RenderUnit extends Object implements Record<RenderUnit>
Modifier and Type | Class and Description |
---|---|
protected static class |
RenderUnit.FluentMap |
Constructor and Description |
---|
RenderUnit() |
Modifier and Type | Method and Description |
---|---|
protected void |
addSubTemplate(String name,
RenderUnit renderUnit) |
protected void |
callUnit(PrintWriter out,
RenderContext renderContext,
Object templateObj,
Object argsObj) |
RenderUnit |
getProperty(String name)
Gets the value of a specified property.
|
Set<String> |
getPropertyNames()
Gets the set of names for this record's properties.
|
protected RenderUnit.FluentMap |
obj() |
protected abstract void |
render(PrintWriter out,
javax.script.Bindings bindings,
javax.script.Bindings arguments,
RenderContext renderContext) |
void |
render(PrintWriter out,
RenderContext renderContext,
javax.script.Bindings arguments)
Render the main script template
|
public final void render(PrintWriter out, RenderContext renderContext, javax.script.Bindings arguments)
out
- the PrintWriter
to which the commands are writtenrenderContext
- the rendering contextarguments
- the arguments for this unitpublic RenderUnit getProperty(String name)
Record
getProperty
in interface Record<RenderUnit>
name
- the name of the propertynull
if this record does not have the specified propertypublic Set<String> getPropertyNames()
Record
getPropertyNames
in interface Record<RenderUnit>
protected abstract void render(PrintWriter out, javax.script.Bindings bindings, javax.script.Bindings arguments, RenderContext renderContext)
protected void callUnit(PrintWriter out, RenderContext renderContext, Object templateObj, Object argsObj)
protected RenderUnit.FluentMap obj()
protected final void addSubTemplate(String name, RenderUnit renderUnit)
Copyright © 2017 The Apache Software Foundation. All rights reserved.