org.apache.cocoon.portal.layout.renderer.aspect.impl
Class DefaultRendererContext

java.lang.Object
  extended by org.apache.cocoon.portal.layout.renderer.aspect.impl.DefaultRendererContext
All Implemented Interfaces:
RendererAspectContext

public final class DefaultRendererContext
extends Object
implements RendererAspectContext

The renderer aspect context is passed to every renderer aspect. Using this context, a renderer aspect can get it's configuration and it can invoke (if wanted) the next aspect in the aspect chain.

Version:
CVS $Id: DefaultRendererContext.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler, Volker Schmitt

Constructor Summary
DefaultRendererContext(RendererAspectChain chain, Layout layout, PortalService service)
           
 
Method Summary
 Object getAspectConfiguration()
          Get the "compiled" configuration of the aspect.
 Object getAttribute(String key)
          Get an attribute
 Map getObjectModel()
          Get the object model
 void invokeNext(Layout layout, PortalService service, ContentHandler handler)
          Stream out raw layout
 boolean isRendering()
          Return whether rendering is enabled for this chain.
 void removeAttribute(String key)
          Remove an attribute
 void setAttribute(String key, Object attribute)
          Set an attribute
 void setObjectModel(Map map)
          Set the object model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRendererContext

public DefaultRendererContext(RendererAspectChain chain,
                              Layout layout,
                              PortalService service)
Method Detail

invokeNext

public void invokeNext(Layout layout,
                       PortalService service,
                       ContentHandler handler)
                throws SAXException
Description copied from interface: RendererAspectContext
Stream out raw layout

Specified by:
invokeNext in interface RendererAspectContext
Throws:
SAXException

isRendering

public boolean isRendering()
Description copied from interface: RendererAspectContext
Return whether rendering is enabled for this chain.

Specified by:
isRendering in interface RendererAspectContext
Returns:
true if rendering is enabled, false otherwise.

getAspectConfiguration

public Object getAspectConfiguration()
Description copied from interface: RendererAspectContext
Get the "compiled" configuration of the aspect.

Specified by:
getAspectConfiguration in interface RendererAspectContext

setAttribute

public void setAttribute(String key,
                         Object attribute)
Set an attribute

Specified by:
setAttribute in interface RendererAspectContext

getAttribute

public Object getAttribute(String key)
Get an attribute

Specified by:
getAttribute in interface RendererAspectContext

removeAttribute

public void removeAttribute(String key)
Remove an attribute

Specified by:
removeAttribute in interface RendererAspectContext

getObjectModel

public Map getObjectModel()
Description copied from interface: RendererAspectContext
Get the object model

Specified by:
getObjectModel in interface RendererAspectContext

setObjectModel

public void setObjectModel(Map map)
Set the object model

Parameters:
map - The object model


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.