org.apache.cocoon.generation
Class TraxGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.transformation.AbstractTransformer
org.apache.cocoon.transformation.TraxTransformer
org.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"
Fields inherited from interface org.apache.cocoon.generation.Generator |
ROLE |
Fields inherited from interface org.apache.cocoon.transformation.Transformer |
ROLE |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TraxGenerator
public TraxGenerator()
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.