org.apache.cocoon.components.language.markup
Class CocoonMarkupLanguage.CocoonTransformerChainBuilderFilter
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.TransformerChainBuilderFilter
org.apache.cocoon.components.language.markup.CocoonMarkupLanguage.CocoonTransformerChainBuilderFilter
- All Implemented Interfaces:
- Poolable, Recyclable, LogEnabled, XMLPipe, XMLProducer, XMLConsumer, ContentHandler, LexicalHandler
- Enclosing class:
- CocoonMarkupLanguage
public class CocoonMarkupLanguage.CocoonTransformerChainBuilderFilter
- extends AbstractMarkupLanguage.TransformerChainBuilderFilter
This filter builds on the fly a chain of transformers. It extends the
AbstractMarkupLanguage.TransformerChainBuilderFilter
so
it can add common markup language features such as:
- Looking for <?xml-logisheet href="..."?;> PI and
<xsp:xml-logisheet location="..."> elements to register
user defined logicsheets;
- Adding all the dependencies related to the pages as
<xsp:dependency;>...</xsp:dependency;>
- See Also:
ContentHandler
Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe |
comment, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, setDocumentLocator, skippedEntity, startCDATA, startDTD, startEntity |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected Logger log
CocoonMarkupLanguage.CocoonTransformerChainBuilderFilter
public CocoonMarkupLanguage.CocoonTransformerChainBuilderFilter(LogicsheetCodeGenerator logicsheetMarkupGenerator)
- Parameters:
logicsheetMarkupGenerator
- the code generator
enableLogging
public void enableLogging(Logger logger)
- Provide component with a logger.
- Specified by:
enableLogging
in interface LogEnabled
- Overrides:
enableLogging
in class AbstractLogEnabled
- Parameters:
logger
- the logger
processingInstruction
public void processingInstruction(String target,
String data)
throws SAXException
- Description copied from class:
AbstractXMLPipe
- Receive notification of a processing instruction.
- Specified by:
processingInstruction
in interface ContentHandler
- Overrides:
processingInstruction
in class AbstractXMLPipe
- Parameters:
target
- The processing instruction target.data
- The processing instruction data, or null if none was
supplied.
- Throws:
SAXException
startDocument
public void startDocument()
throws SAXException
- Description copied from class:
AbstractXMLPipe
- Receive notification of the beginning of a document.
- Specified by:
startDocument
in interface ContentHandler
- Overrides:
startDocument
in class AbstractMarkupLanguage.TransformerChainBuilderFilter
- Throws:
SAXException
- See Also:
ContentHandler
startElement
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
- Description copied from class:
AbstractXMLPipe
- Receive notification of the beginning of an element.
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class AbstractMarkupLanguage.TransformerChainBuilderFilter
- Parameters:
namespaceURI
- The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace
processing is not being performed.localName
- The local name (without prefix), or the empty string if
Namespace processing is not being performed.qName
- The raw XML 1.0 name (with prefix), or the empty string if
raw names are not available.atts
- The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.
- Throws:
SAXException
- See Also:
ContentHandler
endElement
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
- Description copied from class:
AbstractXMLPipe
- Receive notification of the end of an element.
- Specified by:
endElement
in interface ContentHandler
- Overrides:
endElement
in class AbstractXMLPipe
- Parameters:
namespaceURI
- The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace
processing is not being performed.localName
- The local name (without prefix), or the empty string if
Namespace processing is not being performed.qName
- The raw XML 1.0 name (with prefix), or the empty string if
raw names are not available.
- Throws:
SAXException
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
- Description copied from class:
AbstractXMLPipe
- Receive notification of character data.
- Specified by:
characters
in interface ContentHandler
- Overrides:
characters
in class AbstractXMLPipe
- Parameters:
ch
- The characters from the XML document.start
- The start position in the array.length
- The number of characters to read from the array.
- Throws:
SAXException
startPrefixMapping
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
- Description copied from class:
AbstractXMLPipe
- Begin the scope of a prefix-URI Namespace mapping.
- Specified by:
startPrefixMapping
in interface ContentHandler
- Overrides:
startPrefixMapping
in class AbstractMarkupLanguage.TransformerChainBuilderFilter
- Parameters:
prefix
- The Namespace prefix being declared.uri
- The Namespace URI the prefix is mapped to.
- Throws:
SAXException
- See Also:
ContentHandler
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.