public abstract class RenderUnit extends java.lang.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(java.lang.String name,
RenderUnit renderUnit) |
protected void |
callUnit(java.io.PrintWriter out,
RenderContext renderContext,
java.lang.Object templateObj,
java.lang.Object argsObj) |
RenderUnit |
getProperty(java.lang.String name)
Gets the value of a specified property.
|
java.util.Set<java.lang.String> |
getPropertyNames()
Gets the set of names for this record's properties.
|
protected RenderUnit.FluentMap |
obj() |
protected abstract void |
render(java.io.PrintWriter out,
javax.script.Bindings bindings,
javax.script.Bindings arguments,
RenderContext renderContext) |
void |
render(java.io.PrintWriter out,
RenderContext renderContext,
javax.script.Bindings arguments)
Render the main script template
|
public final void render(java.io.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(java.lang.String name)
Record
getProperty
in interface Record<RenderUnit>
name
- the name of the propertynull
if this record does not have the specified propertypublic java.util.Set<java.lang.String> getPropertyNames()
Record
getPropertyNames
in interface Record<RenderUnit>
protected abstract void render(java.io.PrintWriter out, javax.script.Bindings bindings, javax.script.Bindings arguments, RenderContext renderContext)
protected void callUnit(java.io.PrintWriter out, RenderContext renderContext, java.lang.Object templateObj, java.lang.Object argsObj)
protected RenderUnit.FluentMap obj()
protected final void addSubTemplate(java.lang.String name, RenderUnit renderUnit)
Copyright © 2018 The Apache Software Foundation. All rights reserved.