public class NamespaceFilterTransformer
extends org.apache.cocoon.transformation.AbstractTransformer
implements org.apache.cocoon.caching.CacheableProcessingComponent
<map:transformer type="NamespaceFilterTransformer" src="http://apache.org/cocoon/i18n/2.1"/>
| Constructor and Description |
|---|
NamespaceFilterTransformer() |
| Modifier and Type | Method and Description |
|---|---|
void |
endElement(String uri,
String loc,
String raw)
Receive notification of the end of an element.
|
void |
endPrefixMapping(String prefix)
End the scope of a prefix-URI mapping.
|
Serializable |
getKey()
Return the cache key.
|
org.apache.excalibur.source.SourceValidity |
getValidity()
This cache never invalidates, always return a validating cache.
|
void |
setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters parameters)
Setup the processing instruction transformer.
|
void |
startElement(String uri,
String loc,
String raw,
Attributes a)
Receive notification of the beginning of an element.
|
void |
startPrefixMapping(String prefix,
String uri)
Begin the scope of a prefix-URI Namespace mapping.
|
characters, comment, endCDATA, endDocument, endDTD, endEntity, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntityrecycle, setConsumer, setContentHandler, setLexicalHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharacters, endDocument, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocumentcomment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntitypublic Serializable getKey()
getKey in interface org.apache.cocoon.caching.CacheableProcessingComponentpublic org.apache.excalibur.source.SourceValidity getValidity()
getValidity in interface org.apache.cocoon.caching.CacheableProcessingComponentpublic void setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters parameters)
throws org.apache.cocoon.ProcessingException,
SAXException,
IOException
src parameter which should be the path to an XSL
style sheet to be applied by the client's browser.
Set up the namespace filter by getting a list of namespaces to be filtered from the pipeline.
setup in interface org.apache.cocoon.sitemap.SitemapModelComponentresolver - unused.objectModel - unused.src - the filter namespace.parameters - unused.org.apache.cocoon.ProcessingException - never.SAXException - never.IOException - never.public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class org.apache.cocoon.xml.AbstractXMLPipeprefix - The Namespace prefix being declared.uri - The Namespace URI the prefix is mapped to.SAXException - passed through.public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerendPrefixMapping in class org.apache.cocoon.xml.AbstractXMLPipeprefix - The prefix that was being mapping.SAXException - passed through.public void startElement(String uri, String loc, String raw, Attributes a) throws SAXException
startElement in interface ContentHandlerstartElement in class org.apache.cocoon.xml.AbstractXMLPipeuri - element namespace.loc - local name of the element.raw - qualified name of the element.a - attributes on this element.SAXException - passed through.public void endElement(String uri, String loc, String raw) throws SAXException
endElement in interface ContentHandlerendElement in class org.apache.cocoon.xml.AbstractXMLPipeuri - namespace of the element.loc - local name of the element.raw - qualified name of the element.SAXException - passed through.Copyright © 2016 DuraSpace. All rights reserved.