Class RenderUnit
- java.lang.Object
-
- org.apache.sling.scripting.sightly.render.RenderUnit
-
- All Implemented Interfaces:
Record<RenderUnit>
public abstract class RenderUnit extends java.lang.Object implements Record<RenderUnit>
Basic unit of rendering. This also extends the record interface. The properties for a unit are the sub-units.
-
-
Constructor Summary
Constructors Constructor Description RenderUnit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RenderUnitgetProperty(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.voidrender(java.io.PrintWriter out, RenderContext renderContext, javax.script.Bindings arguments)Render the main script template
-
-
-
Method Detail
-
render
public final void render(java.io.PrintWriter out, RenderContext renderContext, javax.script.Bindings arguments)Render the main script template- Parameters:
out- thePrintWriterto which the commands are writtenrenderContext- the rendering contextarguments- the arguments for this unit
-
getProperty
public RenderUnit getProperty(java.lang.String name)
Description copied from interface:RecordGets the value of a specified property.- Specified by:
getPropertyin interfaceRecord<RenderUnit>- Parameters:
name- the name of the property- Returns:
- the value of the property or
nullif this record does not have the specified property
-
getPropertyNames
public java.util.Set<java.lang.String> getPropertyNames()
Description copied from interface:RecordGets the set of names for this record's properties.- Specified by:
getPropertyNamesin interfaceRecord<RenderUnit>- Returns:
- this record's properties' names
-
-