|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLoggable | +--org.apache.cocoon.xml.AbstractXMLConsumer | +--org.apache.cocoon.xml.ContentHandlerWrapper | +--org.apache.cocoon.sitemap.ContentAggregator
Field Summary | |
protected java.util.Map |
objectModel
The current Map objectModel. |
protected org.apache.avalon.framework.parameters.Parameters |
parameters
The current Parameters . |
protected java.util.ArrayList |
parts
the parts |
protected SourceResolver |
resolver
The current SourceResolver . |
protected java.lang.String |
rootElement
the root element of the aggregated content |
protected java.lang.String |
rootElementNS
the namespace of the root element |
protected java.lang.String |
rootElementNSPrefix
the namespace prefix of the root element |
protected java.lang.String |
source
The source URI associated with the request or null. |
Fields inherited from class org.apache.cocoon.xml.ContentHandlerWrapper |
contentHandler, lexicalHandler |
Fields inherited from interface org.apache.cocoon.generation.Generator |
ROLE |
Constructor Summary | |
ContentAggregator()
|
Method Summary | |
void |
addPart(java.lang.String uri,
java.lang.String element,
java.lang.String namespace,
java.lang.String stripRootElement,
java.lang.String prefix)
|
void |
endDocument()
Receive notification of the end of a document. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
Receive notification of the end of an element. |
void |
generate()
generates the content |
long |
generateKey()
Generate the unique key. |
CacheValidity |
generateValidity()
Generate the validity object. |
void |
recycle()
Recycle the producer by removing references |
void |
setConsumer(XMLConsumer consumer)
Set the XMLConsumer that will receive XML data.
|
void |
setRootElement(java.lang.String element,
java.lang.String namespace,
java.lang.String prefix)
|
void |
setup(SourceResolver resolver,
java.util.Map objectModel,
java.lang.String src,
org.apache.avalon.framework.parameters.Parameters par)
Set the SourceResolver , object model Map ,
the source and sitemap Parameters used to process the request. |
void |
startDocument()
Ignore start and end document events |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Receive notification of the beginning of an element. |
Methods inherited from class org.apache.cocoon.xml.ContentHandlerWrapper |
characters, comment, endCDATA, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, setLexicalHandler, skippedEntity, startCDATA, startDTD, startEntity, startPrefixMapping |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String rootElement
protected java.lang.String rootElementNS
protected java.lang.String rootElementNSPrefix
protected java.util.ArrayList parts
protected SourceResolver resolver
SourceResolver
.protected java.util.Map objectModel
Map
objectModel.protected org.apache.avalon.framework.parameters.Parameters parameters
Parameters
.protected java.lang.String source
Constructor Detail |
public ContentAggregator()
Method Detail |
public void generate() throws java.io.IOException, org.xml.sax.SAXException, ProcessingException
generate
in interface Generator
public long generateKey()
generateKey
in interface Cacheable
public CacheValidity generateValidity()
generateValidity
in interface Cacheable
null
if the
component is currently not cacheable.public void setRootElement(java.lang.String element, java.lang.String namespace, java.lang.String prefix)
public void addPart(java.lang.String uri, java.lang.String element, java.lang.String namespace, java.lang.String stripRootElement, java.lang.String prefix)
public void setConsumer(XMLConsumer consumer)
XMLConsumer
that will receive XML data.
setContentHandler(consumer)
and setLexicalHandler(consumer)
.setConsumer
in interface XMLProducer
public void recycle()
recycle
in interface org.apache.avalon.excalibur.pool.Recyclable
recycle
in class ContentHandlerWrapper
public void setup(SourceResolver resolver, java.util.Map objectModel, java.lang.String src, org.apache.avalon.framework.parameters.Parameters par) throws ProcessingException, org.xml.sax.SAXException, java.io.IOException
SourceResolver
, object model Map
,
the source and sitemap Parameters
used to process the request.setup
in interface SitemapModelComponent
public void startDocument() throws org.xml.sax.SAXException
startDocument
in class ContentHandlerWrapper
public void endDocument() throws org.xml.sax.SAXException
ContentHandlerWrapper
endDocument
in class ContentHandlerWrapper
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
ContentHandlerWrapper
startElement
in class ContentHandlerWrapper
org.apache.cocoon.xml.AbstractXMLConsumer
uri
- The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace
processing is not being performed.loc
- The local name (without prefix), or the empty string if
Namespace processing is not being performed.raw
- The raw XML 1.0 name (with prefix), or the empty string if
raw names are not available.a
- The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
ContentHandlerWrapper
endElement
in class ContentHandlerWrapper
org.apache.cocoon.xml.AbstractXMLConsumer
uri
- The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace
processing is not being performed.loc
- The local name (without prefix), or the empty string if
Namespace processing is not being performed.raw
- The raw XML 1.0 name (with prefix), or the empty string if
raw names are not available.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |