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

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.xml.AbstractXMLProducer
              |
              +--org.apache.cocoon.generation.AbstractGenerator
                    |
                    +--org.apache.cocoon.generation.ComposerGenerator
                          |
                          +--org.apache.cocoon.generation.ServletGenerator
                                |
                                +--org.apache.cocoon.generation.AbstractServerPage
                                      |
                                      +--org.apache.cocoon.components.language.markup.xsp.XSPGenerator
All Implemented Interfaces:
Cacheable, CompiledComponent, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.activity.Disposable, Generator, org.apache.avalon.framework.logger.Loggable, Modifiable, org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.excalibur.pool.Recyclable, SitemapModelComponent, XMLProducer
Direct Known Subclasses:
JSGenerator

public abstract class XSPGenerator
extends AbstractServerPage
implements CompiledComponent, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.excalibur.pool.Recyclable

Base class for XSP-generated ServerPagesGenerator classes

Version:
CVS $Id: XSPGenerator.java,v 1.7 2002/03/08 04:08:53 vgritsenko Exp $
Author:
Ricardo Rocha

Field Summary
protected  org.apache.avalon.framework.context.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, lexicalHandler, xmlConsumer
 
Fields inherited from interface org.apache.cocoon.generation.Generator
ROLE
 
Constructor Summary
XSPGenerator()
           
 
Method Summary
 void compose(org.apache.avalon.framework.component.ComponentManager manager)
          Set the current ComponentManager instance used by this Generator and initialize relevant instance variables.
 void contextualize(org.apache.avalon.framework.context.Context context)
          Contextualize this class
 void xspCharacters(java.lang.String data)
          Add character data
 void xspComment(java.lang.String comment)
          Add a comment
 void xspExpr(java.lang.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, hasContentChanged, modifiedSince, 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.AbstractLoggable
getLogger, setLogger, 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.avalon.excalibur.pool.Recyclable
recycle
 
Methods inherited from interface org.apache.cocoon.generation.Generator
generate
 
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
 

Field Detail

avalonContext

protected org.apache.avalon.framework.context.Context avalonContext
Constructor Detail

XSPGenerator

public XSPGenerator()
Method Detail

contextualize

public void contextualize(org.apache.avalon.framework.context.Context context)
                   throws org.apache.avalon.framework.context.ContextException
Contextualize this class
Specified by:
contextualize in interface org.apache.avalon.framework.context.Contextualizable

compose

public void compose(org.apache.avalon.framework.component.ComponentManager manager)
             throws org.apache.avalon.framework.component.ComponentException
Set the current ComponentManager instance used by this Generator and initialize relevant instance variables.
Specified by:
compose in interface org.apache.avalon.framework.component.Composable
Overrides:
compose in class ComposerGenerator
Parameters:
manager - The global component manager

xspCharacters

public void xspCharacters(java.lang.String data)
                   throws org.xml.sax.SAXException
Add character data
Parameters:
data - The character data

xspComment

public void xspComment(java.lang.String comment)
                throws org.xml.sax.SAXException
Add a comment
Parameters:
comment - The comment data

xspExpr

public void xspExpr(java.lang.Object v)
             throws org.xml.sax.SAXException
Implementation of <xsp:expr> for String, Collection, XMLizable, Node, and Object.
Parameters:
v - the value


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.