|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
public class AbstractMarkupLanguage.TransformerChainBuilderFilter
An XMLFilter that build the chain of transformers on the fly. Each time a stylesheet is found, a call to the code generator is done to add the new transformer at the end of the current transformer chain.
Field Summary | |
---|---|
protected AbstractMarkupLanguage.LanguageDescriptor |
language
the language description |
protected LogicsheetCodeGenerator |
logicsheetMarkupGenerator
The markup generator |
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
---|
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer |
Constructor Summary | |
---|---|
protected |
AbstractMarkupLanguage.TransformerChainBuilderFilter(LogicsheetCodeGenerator logicsheetMarkupGenerator)
the constructor depends on the code generator |
Method Summary | |
---|---|
protected void |
setLanguageDescriptor(AbstractMarkupLanguage.LanguageDescriptor language)
This method should be called prior to receiving any SAX event. |
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.xml.AbstractXMLPipe |
---|
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, 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 |
---|
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.apache.cocoon.xml.XMLProducer |
---|
setConsumer |
Field Detail |
---|
protected LogicsheetCodeGenerator logicsheetMarkupGenerator
protected AbstractMarkupLanguage.LanguageDescriptor language
Constructor Detail |
---|
protected AbstractMarkupLanguage.TransformerChainBuilderFilter(LogicsheetCodeGenerator logicsheetMarkupGenerator)
logicsheetMarkupGenerator
- The code generatorMethod Detail |
---|
protected void setLanguageDescriptor(AbstractMarkupLanguage.LanguageDescriptor language)
language
- the language in usedpublic void startDocument() throws SAXException
AbstractXMLPipe
startDocument
in interface ContentHandler
startDocument
in class AbstractXMLPipe
SAXException
ContentHandler
public void startPrefixMapping(String prefix, String uri) throws SAXException
AbstractXMLPipe
startPrefixMapping
in interface ContentHandler
startPrefixMapping
in class AbstractXMLPipe
prefix
- The Namespace prefix being declared.uri
- The Namespace URI the prefix is mapped to.
SAXException
ContentHandler
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
AbstractXMLPipe
startElement
in interface ContentHandler
startElement
in class AbstractXMLPipe
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.
SAXException
ContentHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |