org.apache.cocoon.generation
Class TraxGenerator

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.xml.AbstractXMLProducer
          extended byorg.apache.cocoon.xml.AbstractXMLPipe
              extended byorg.apache.cocoon.transformation.AbstractTransformer
                  extended byorg.apache.cocoon.transformation.TraxTransformer
                      extended byorg.apache.cocoon.generation.TraxGenerator
All Implemented Interfaces:
CacheableProcessingComponent, Configurable, ContentHandler, Disposable, Generator, LexicalHandler, LogEnabled, Poolable, Recyclable, Serviceable, SitemapModelComponent, Transformer, XMLConsumer, XMLConsumer, XMLPipe, XMLProducer

public class TraxGenerator
extends TraxTransformer
implements Generator

XSLT Generator: works by taking a Java Bean as an input "document"


Field Summary
 
Fields inherited from class org.apache.cocoon.transformation.TraxTransformer
logicSheetParameters, manager, objectModel, transformerHandler, transformerValidity
 
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
 
Fields inherited from interface org.apache.cocoon.transformation.Transformer
ROLE
 
Constructor Summary
TraxGenerator()
           
 
Method Summary
 void generate()
          Generate the XML and stream it into the pipeline
 void recycle()
          Recyclable
 void setConsumer(XMLConsumer consumer)
          Set the XMLConsumer that will receive XML data.
 void setup(SourceResolver resolver, Map objectModel, String src, Parameters parameters)
          The Sitemap will call the setup() method to prepare the component for use.
 
Methods inherited from class org.apache.cocoon.transformation.TraxTransformer
configure, dispose, endDocument, getKey, getLogicSheetParameters, getValidity, service, startDocument
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe
characters, comment, endCDATA, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startElement, startEntity, startPrefixMapping
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
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.xml.sax.ContentHandler
characters, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping
 
Methods inherited from interface org.xml.sax.ext.LexicalHandler
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
 

Constructor Detail

TraxGenerator

public TraxGenerator()
Method Detail

setup

public void setup(SourceResolver resolver,
                  Map objectModel,
                  String src,
                  Parameters parameters)
           throws ProcessingException,
                  SAXException,
                  IOException
Description copied from interface: SitemapModelComponent
The Sitemap will call the setup() method to prepare the component for use. This is where you start the process of getting your information ready to generate your results. See ObjectModelHelper for help with the objectModel.

Specified by:
setup in interface SitemapModelComponent
Overrides:
setup in class TraxTransformer
Throws:
ProcessingException
SAXException
IOException

generate

public void generate()
              throws IOException,
                     SAXException,
                     ProcessingException
Description copied from interface: Generator
Generate the XML and stream it into the pipeline

Specified by:
generate in interface Generator
Throws:
IOException
SAXException
ProcessingException

setConsumer

public void setConsumer(XMLConsumer consumer)
Description copied from interface: XMLProducer
Set the XMLConsumer that will receive XML data.

Specified by:
setConsumer in interface XMLProducer
Overrides:
setConsumer in class TraxTransformer

recycle

public void recycle()
Description copied from class: TraxTransformer
Recyclable

Specified by:
recycle in interface Recyclable
Overrides:
recycle in class TraxTransformer


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