|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.pipeline.component.AbstractPipelineComponent org.apache.cocoon.stax.AbstractStAXPipelineComponent org.apache.cocoon.stax.AbstractStAXProducer org.apache.cocoon.stax.AbstractStAXTransformer org.apache.cocoon.stax.component.IncludeTransformer
public class IncludeTransformer
A transformer that includes a xml document into another at the place where a include tag is found pointing at the document to include.
Constructor Summary | |
---|---|
IncludeTransformer()
Creates a new IncludeTransformer that includes a xml document into another at the
place where a include tag is found pointing at the document to include. |
Method Summary | |
---|---|
void |
produceEvents()
Template method which has to produce at least one XMLEvent and should add this to the
internal Queue with the #add(XMLEvent) and #addAll(Collection)
methods. |
void |
setBaseUrl(URL baseUrl)
Sets the base url for this transformer. |
void |
setConfiguration(Map<String,? extends Object> configuration)
Pass component specific configuration parameters to the pipeline component in a generic way. |
String |
toString()
|
Methods inherited from class org.apache.cocoon.stax.AbstractStAXTransformer |
---|
addAllEventsToQueue, addEventToQueue, getParent, hasNext, initiatePullProcessing, isQueueEmpty, nextEvent, peek, setParent |
Methods inherited from class org.apache.cocoon.stax.AbstractStAXProducer |
---|
getConsumer, setConsumer |
Methods inherited from class org.apache.cocoon.pipeline.component.AbstractPipelineComponent |
---|
finish, setup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.cocoon.pipeline.component.PipelineComponent |
---|
finish, setup |
Constructor Detail |
---|
public IncludeTransformer()
IncludeTransformer
that includes a xml document into another at the
place where a include tag is found pointing at the document to include.
Method Detail |
---|
public void produceEvents() throws XMLStreamException
XMLEvent
and should add this to the
internal Queue
with the #add(XMLEvent)
and #addAll(Collection)
methods. If no XMLEvent
is added by this method to the internal Queue
an
exception is thrown.
produceEvents
in class AbstractStAXTransformer
XMLStreamException
- thrown if the StAXProducer.nextEvent()
or the
StAXProducer.peek()
method, called in the AbstractStAXTransformer.produceEvents()
method
throw any exceptions they have to be forwarded to the end of the pipeline.AbstractStAXTransformer.produceEvents()
public void setConfiguration(Map<String,? extends Object> configuration)
setConfiguration
in interface PipelineComponent
setConfiguration
in class AbstractPipelineComponent
configuration
- The Map
of configuration parameters.AbstractPipelineComponent.setConfiguration(Map)
public void setBaseUrl(URL baseUrl)
baseUrl
- The new base urlpublic String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |