org.apache.cocoon.components.language.markup
Class CocoonMarkupLanguage.CocoonTransformerChainBuilderFilter

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.xml.AbstractXMLProducer
          extended by org.apache.cocoon.xml.AbstractXMLPipe
              extended by org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.TransformerChainBuilderFilter
                  extended by 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:

See Also:
ContentHandler

Field Summary
protected  Logger log
           
 
Fields inherited from class org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.TransformerChainBuilderFilter
language, logicsheetMarkupGenerator
 
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
 
Constructor Summary
CocoonMarkupLanguage.CocoonTransformerChainBuilderFilter(LogicsheetCodeGenerator logicsheetMarkupGenerator)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
          Receive notification of character data.
 void enableLogging(Logger logger)
          Provide component with a logger.
 void endElement(String namespaceURI, String localName, String qName)
          Receive notification of the end of an element.
 void processingInstruction(String target, String data)
          Receive notification of a processing instruction.
 void startDocument()
          Receive notification of the beginning of a document.
 void startElement(String namespaceURI, String localName, String qName, Attributes atts)
          Receive notification of the beginning of an element.
 void startPrefixMapping(String prefix, String uri)
          Begin the scope of a prefix-URI Namespace mapping.
 
Methods inherited from class org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.TransformerChainBuilderFilter
setLanguageDescriptor
 
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 org.apache.cocoon.xml.AbstractXMLProducer
recycle, setConsumer, setContentHandler, setLexicalHandler
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
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.apache.cocoon.xml.XMLProducer
setConsumer
 

Field Detail

log

protected Logger log
Constructor Detail

CocoonMarkupLanguage.CocoonTransformerChainBuilderFilter

public CocoonMarkupLanguage.CocoonTransformerChainBuilderFilter(LogicsheetCodeGenerator logicsheetMarkupGenerator)
Parameters:
logicsheetMarkupGenerator - the code generator
Method Detail

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.