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

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

public abstract class XSPGenerator
extends AbstractServerPage
implements Contextualizable

Base class for XSP-generated ServerPagesGenerator classes

Version:
$Id: XSPGenerator.html 1304258 2012-03-23 10:09:27Z ilgrosso $
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, request, response
 
Fields inherited from class org.apache.cocoon.generation.ComposerGenerator
manager
 
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 compose(ComponentManager manager)
          Set the current ComponentManager instance used by this Generator and initialize relevant instance variables.
 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, generateKey, generateValidity, getKey, getValidity, hasContentChanged, modifiedSince, recompose, start
 
Methods inherited from class org.apache.cocoon.generation.ServletGenerator
recycle, setup
 
Methods inherited from class org.apache.cocoon.generation.ComposerGenerator
dispose
 
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.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

compose

public void compose(ComponentManager manager)
             throws ComponentException
Set the current ComponentManager instance used by this Generator and initialize relevant instance variables.

Specified by:
compose in interface Composable
Overrides:
compose in class ComposerGenerator
Parameters:
manager - The global component manager
Throws:
ComponentException

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-2010 The Apache Software Foundation. All Rights Reserved.