org.apache.cocoon.components.language.markup.xsp
Class XSPGenerator

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.xml.AbstractXMLProducer
          extended byorg.apache.cocoon.generation.AbstractGenerator
              extended byorg.apache.cocoon.generation.ServletGenerator
                  extended byorg.apache.cocoon.generation.AbstractServerPage
                      extended byorg.apache.cocoon.components.language.markup.xsp.XSPGenerator
All Implemented Interfaces:
CacheableProcessingComponent, CompiledComponent, Contextualizable, Disposable, Generator, LogEnabled, Modifiable, Poolable, Recyclable, Serviceable, SitemapModelComponent, XMLProducer
Direct Known Subclasses:
JSGenerator, PythonGenerator

public abstract class XSPGenerator
extends AbstractServerPage
implements CompiledComponent, Contextualizable

Base class for XSP-generated ServerPagesGenerator classes

Version:
CVS $Id: XSPGenerator.java 55257 2004-10-21 20:36:33Z cziegeler $
Author:
Ricardo Rocha

Field Summary
protected  Context avalonContext
           
 
Fields inherited from class org.apache.cocoon.generation.AbstractServerPage
dateCreated, dependencies
 
Fields inherited from class org.apache.cocoon.generation.ServletGenerator
context, manager, request, response
 
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
 
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
 
Fields inherited from interface org.apache.cocoon.generation.Generator
ROLE
 
Constructor Summary
XSPGenerator()
           
 
Method Summary
 void contextualize(Context context)
          Contextualize this class
 void xspCharacters(String data)
          Add character data
 void xspComment(String comment)
          Add a comment
 void xspExpr(Object v)
          Implementation of <xsp:expr> for String, Collection, XMLizable, Node, and Object.
 
Methods inherited from class org.apache.cocoon.generation.AbstractServerPage
attribute, characters, comment, end, getKey, getValidity, hasContentChanged, modifiedSince, start
 
Methods inherited from class org.apache.cocoon.generation.ServletGenerator
dispose, recycle, service, setup
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.Modifiable
modifiedSince
 
Methods inherited from interface org.apache.cocoon.generation.Generator
generate
 
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
 

Field Detail

avalonContext

protected Context avalonContext
Constructor Detail

XSPGenerator

public XSPGenerator()
Method Detail

contextualize

public void contextualize(Context context)
                   throws ContextException
Contextualize this class

Specified by:
contextualize in interface Contextualizable
Throws:
ContextException

xspCharacters

public void xspCharacters(String data)
                   throws SAXException
Add character data

Parameters:
data - The character data
Throws:
SAXException

xspComment

public void xspComment(String comment)
                throws SAXException
Add a comment

Parameters:
comment - The comment data
Throws:
SAXException

xspExpr

public void xspExpr(Object v)
             throws SAXException
Implementation of <xsp:expr> for String, Collection, XMLizable, Node, and Object.

Parameters:
v - the value
Throws:
SAXException


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