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

java.lang.Object
  extended byorg.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:
$Id: DefaultRendererContext.java 322471 2005-10-16 13:24:19Z cziegeler $

Constructor Summary
DefaultRendererContext(RendererAspectChain chain)
           
 
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
 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)
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
See Also:
RendererAspectContext.invokeNext(org.apache.cocoon.portal.layout.Layout, org.apache.cocoon.portal.PortalService, org.xml.sax.ContentHandler)

getAspectConfiguration

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

Specified by:
getAspectConfiguration in interface RendererAspectContext
See Also:
RendererAspectContext.getAspectConfiguration()

setAttribute

public void setAttribute(String key,
                         Object attribute)
Description copied from interface: RendererAspectContext
Set an attribute

Specified by:
setAttribute in interface RendererAspectContext
See Also:
RendererAspectContext.setAttribute(java.lang.String, java.lang.Object)

getAttribute

public Object getAttribute(String key)
Description copied from interface: RendererAspectContext
Get an attribute

Specified by:
getAttribute in interface RendererAspectContext
See Also:
RendererAspectContext.getAttribute(java.lang.String)

removeAttribute

public void removeAttribute(String key)
Description copied from interface: RendererAspectContext
Remove an attribute

Specified by:
removeAttribute in interface RendererAspectContext
See Also:
RendererAspectContext.removeAttribute(java.lang.String)

getObjectModel

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

Specified by:
getObjectModel in interface RendererAspectContext
See Also:
RendererAspectContext.getObjectModel()

setObjectModel

public void setObjectModel(Map map)
Set the object model

Parameters:
map - The object model


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.