info.magnolia.module.templating
Class RenderingModelImpl<RD extends RenderableDefinition>

java.lang.Object
  extended by info.magnolia.module.templating.RenderingModelImpl<RD>
Type Parameters:
RD - - an instance of RenderableDefinition
All Implemented Interfaces:
RenderingModel

public class RenderingModelImpl<RD extends RenderableDefinition>
extends Object
implements RenderingModel

The default concrete rendering definition used for templates and paragraphs.

Version:
$Id: RenderingModelImpl.java 36512 2010-08-18 14:04:05Z fgrilli $
Author:
pbracher

Field Summary
protected  info.magnolia.cms.core.Content content
           
protected  RD definition
           
protected  RenderingModel parentModel
           
 
Fields inherited from interface info.magnolia.module.templating.RenderingModel
SKIP_RENDERING
 
Constructor Summary
RenderingModelImpl(info.magnolia.cms.core.Content content, RD definition, RenderingModel parent)
           
 
Method Summary
 String execute()
          Called after all properties were set.
 info.magnolia.cms.core.Content getContent()
          The content tied to this model.
 RD getDef()
          Shortname for templates: model.def.
 RD getDefinition()
          The renderable (paragraph/template) tied to this model.
 RenderingModel getParent()
          The model of the parent paragraph or template.
 RenderingModel getRoot()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parentModel

protected final RenderingModel parentModel

content

protected final info.magnolia.cms.core.Content content

definition

protected final RD extends RenderableDefinition definition
Constructor Detail

RenderingModelImpl

public RenderingModelImpl(info.magnolia.cms.core.Content content,
                          RD definition,
                          RenderingModel parent)
Method Detail

getParent

public RenderingModel getParent()
Description copied from interface: RenderingModel
The model of the parent paragraph or template.

Specified by:
getParent in interface RenderingModel

getRoot

public RenderingModel getRoot()

getContent

public info.magnolia.cms.core.Content getContent()
Description copied from interface: RenderingModel
The content tied to this model.

Specified by:
getContent in interface RenderingModel

getDef

public RD getDef()
Shortname for templates: model.def.


getDefinition

public RD getDefinition()
Description copied from interface: RenderingModel
The renderable (paragraph/template) tied to this model.

Specified by:
getDefinition in interface RenderingModel

execute

public String execute()
Description copied from interface: RenderingModel
Called after all properties were set. Can return a string which is passed to the method. RenderableDefinition.determineTemplatePath(String, RenderingModel)

Specified by:
execute in interface RenderingModel


Copyright © 2003-2010 Magnolia International Ltd.. All Rights Reserved.