public class Include
extends org.apache.cocoon.transformation.AbstractTransformer
implements org.apache.cocoon.caching.CacheableProcessingComponent
| Constructor and Description |
|---|
Include() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] c,
int start,
int len)
Receive notification of character data.
|
void |
endDocument()
Receive notification of the end of a document.
|
void |
endElement(String uri,
String localName,
String qName)
Receive notification of the end of an element.
|
Serializable |
getKey()
Generate the unique key.
|
org.apache.excalibur.source.SourceValidity |
getValidity()
Generate the validity object.
|
void |
recycle()
Recycle
|
void |
setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters parameters)
Read in the given src path into an internal DOM for later processing when
needed.
|
void |
startDocument()
Receive notification of the beginning of a document.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Receive notification of the beginning of an element.
|
comment, endCDATA, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startEntity, startPrefixMappingsetConsumer, setContentHandler, setLexicalHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMappingcomment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntitypublic 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
setup in interface org.apache.cocoon.sitemap.SitemapModelComponentresolver - Resolver for cocoon pipelines.objectModel - The pipelines's object model.src - The source parameterparameters - The transformer's parameters.org.apache.cocoon.ProcessingExceptionSAXExceptionIOExceptionpublic Serializable getKey()
getKey in interface org.apache.cocoon.caching.CacheableProcessingComponentpublic org.apache.excalibur.source.SourceValidity getValidity()
getValidity in interface org.apache.cocoon.caching.CacheableProcessingComponentnull if the
component is currently not cacheable.public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class org.apache.cocoon.xml.AbstractXMLPipeSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class org.apache.cocoon.xml.AbstractXMLPipeSAXExceptionpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class org.apache.cocoon.xml.AbstractXMLPipeuri - 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.attributes - The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.SAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.apache.cocoon.xml.AbstractXMLPipeuri - 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.SAXExceptionpublic void characters(char[] c,
int start,
int len)
throws SAXException
characters in interface ContentHandlercharacters in class org.apache.cocoon.xml.AbstractXMLPipec - The characters from the XML document.start - The start position in the array.len - The number of characters to read from the array.SAXExceptionpublic void recycle()
recycle in interface org.apache.avalon.excalibur.pool.Recyclablerecycle in class org.apache.cocoon.xml.AbstractXMLProducerCopyright © 2013 DuraSpace. All Rights Reserved.