|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.templating.engine.DefaultRenderingEngine
public class DefaultRenderingEngine
Default implementation which determines the definition (template/paragraph) from the content's meta data. Based on the node type (mgln:contentNode for paragraphs) a paragraph rendering or a template rendering is performed.
Nested Class Summary | |
---|---|
protected static class |
DefaultRenderingEngine.RenderingHelper
A helper enumeration usable by subclasses. |
Constructor Summary | |
---|---|
DefaultRenderingEngine()
|
Method Summary | |
---|---|
protected String |
determineAssignedDefinitionName(Content content)
Reads the template name from the meta data. |
protected static AggregationState |
getAggregationStateSafely()
|
protected void |
render(Content content,
String definitionName,
DefaultRenderingEngine.RenderingHelper helper,
Writer out)
Will update the aggregation state and perform the rendering by using the helper. |
void |
render(Content content,
String definitionName,
Writer out)
Render the content by using the passed definition . |
void |
render(Content content,
Writer out)
Determines the definition to use from the passed content. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultRenderingEngine()
Method Detail |
---|
public void render(Content content, Writer out) throws RenderException
RenderingEngine
definition
to use from the passed content.
render
in interface RenderingEngine
RenderException
public void render(Content content, String definitionName, Writer out) throws RenderException
RenderingEngine
definition
.
render
in interface RenderingEngine
RenderException
protected String determineAssignedDefinitionName(Content content)
protected void render(Content content, String definitionName, DefaultRenderingEngine.RenderingHelper helper, Writer out) throws RenderException
RenderException
protected static AggregationState getAggregationStateSafely()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |