org.apache.cocoon.transformation
Class XTTransformer
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.cocoon.xml.AbstractXMLConsumer
|
+--org.apache.cocoon.xml.DocumentHandlerWrapper
|
+--org.apache.cocoon.transformation.XTTransformer
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.Composable, org.xml.sax.ContentHandler, org.apache.avalon.framework.activity.Disposable, org.xml.sax.ext.LexicalHandler, org.apache.avalon.framework.logger.Loggable, SitemapModelComponent, Transformer, XMLConsumer, XMLPipe, XMLProducer
- public class XTTransformer
- extends DocumentHandlerWrapper
- implements Transformer, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.framework.activity.Disposable
This Transformer use the XT processor.
- Version:
- CVS $Id: XTTransformer.java,v 1.9 2002/02/22 07:03:56 cziegeler Exp $
- Author:
- Sahuc Sebastien
Fields inherited from interface org.apache.cocoon.transformation.Transformer |
ROLE |
Method Summary |
void |
compose(org.apache.avalon.framework.component.ComponentManager manager)
Set the current ComponentManager instance used by this
Composable . |
void |
dispose()
dispose |
void |
setConsumer(XMLConsumer consumer)
Set the XMLConsumer that will receive XML data.
|
void |
setContentHandler(org.xml.sax.ContentHandler content)
Set the ContentHandler that will receive XML data.
|
void |
setLexicalHandler(org.xml.sax.ext.LexicalHandler lexical)
Set the LexicalHandler that will receive XML data.
|
void |
setLogger(org.apache.log.Logger logger)
|
void |
setup(SourceResolver resolver,
java.util.Map objectModel,
java.lang.String src,
org.apache.avalon.framework.parameters.Parameters par)
Set the SourceResolver , the Dictionary with
the object model, the source and sitemap
Parameters used to process the request. |
Methods inherited from class org.apache.cocoon.xml.DocumentHandlerWrapper |
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, recycle, setDocumentHandler, setDocumentLocator, startDocument, startElement, startPrefixMapping |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
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, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
Methods inherited from interface org.xml.sax.ext.LexicalHandler |
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity |
XTTransformer
public XTTransformer()
setLogger
public void setLogger(org.apache.log.Logger logger)
- Specified by:
setLogger
in interface org.apache.avalon.framework.logger.Loggable
- Overrides:
setLogger
in class DocumentHandlerWrapper
compose
public void compose(org.apache.avalon.framework.component.ComponentManager manager)
- Set the current
ComponentManager
instance used by this
Composable
.
- Specified by:
compose
in interface org.apache.avalon.framework.component.Composable
setup
public void setup(SourceResolver resolver,
java.util.Map objectModel,
java.lang.String src,
org.apache.avalon.framework.parameters.Parameters par)
throws org.xml.sax.SAXException,
ProcessingException,
java.io.IOException
- Set the
SourceResolver
, the Dictionary
with
the object model, the source and sitemap
Parameters
used to process the request.
- Specified by:
setup
in interface SitemapModelComponent
setConsumer
public void setConsumer(XMLConsumer consumer)
- Set the
XMLConsumer
that will receive XML data.
This method will simply call setContentHandler(consumer)
and setLexicalHandler(consumer)
.
- Specified by:
setConsumer
in interface XMLProducer
setContentHandler
public void setContentHandler(org.xml.sax.ContentHandler content)
- Set the
ContentHandler
that will receive XML data.
Subclasses may retrieve this ContentHandler
instance
accessing the protected super.contentHandler
field.
setLexicalHandler
public void setLexicalHandler(org.xml.sax.ext.LexicalHandler lexical)
- Set the
LexicalHandler
that will receive XML data.
Subclasses may retrieve this LexicalHandler
instance
accessing the protected super.lexicalHandler
field.
- Throws:
java.lang.IllegalStateException
- If the LexicalHandler
or
the XMLConsumer
were
already set.
dispose
public void dispose()
- dispose
- Specified by:
dispose
in interface org.apache.avalon.framework.activity.Disposable
Copyright � 1999-2002 Apache Software Foundation. All Rights Reserved.