Class PartialTemplateRendererImpl
- java.lang.Object
-
- org.apache.tapestry5.internal.services.PartialTemplateRendererImpl
-
- All Implemented Interfaces:
PartialTemplateRenderer
public class PartialTemplateRendererImpl extends java.lang.Object implements PartialTemplateRenderer
-
-
Constructor Summary
Constructors Constructor Description PartialTemplateRendererImpl(TypeCoercer typeCoercer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
render(java.lang.Object object)
Renders an object, probably aBlock
or component instance, to a string.Document
renderAsDocument(java.lang.Object object)
Renders an object to aDocument
following the same rules asPartialTemplateRenderer.render(Object)
This method supposes any kind of initialization needed was already done.
-
-
-
Constructor Detail
-
PartialTemplateRendererImpl
public PartialTemplateRendererImpl(TypeCoercer typeCoercer)
-
-
Method Detail
-
renderAsDocument
public Document renderAsDocument(java.lang.Object object)
Description copied from interface:PartialTemplateRenderer
Renders an object to aDocument
following the same rules asPartialTemplateRenderer.render(Object)
This method supposes any kind of initialization needed was already done. CSS and JavaScript inclusions or importings are ignored.- Specified by:
renderAsDocument
in interfacePartialTemplateRenderer
- Parameters:
object
- to render, aRenderCommand
, or coercible to one- Returns:
- a
Document
.
-
render
public java.lang.String render(java.lang.Object object)
Description copied from interface:PartialTemplateRenderer
Renders an object, probably aBlock
or component instance, to a string. This method supposes any kind of initialization needed was already done. CSS and JavaScript inclusions or importings are ignored. The object must implementRenderCommand
or being able to be coerced to it byTypeCoercer
.- Specified by:
render
in interfacePartialTemplateRenderer
- Parameters:
object
- an object, probably aBlock
or component instance orRenderCommand
.
-
-