|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.transformation.AbstractTransformer
org.dspace.app.xmlui.wing.Include
public class Include
The Include class reads an DRI XML file from and merges it into the existing document stream using the Wing framework. If the file is not present at the source provided a blank document is merged, allowing the pipeline to continue excecution. This is also logged as a warning.
| Field Summary |
|---|
| Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
|---|
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer |
| Fields inherited from interface org.apache.cocoon.transformation.Transformer |
|---|
ROLE |
| Constructor Summary | |
|---|---|
Include()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe |
|---|
comment, endCDATA, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startEntity, startPrefixMapping |
| Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
|---|
setConsumer, setContentHandler, setLexicalHandler |
| Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled |
|---|
getLogger, setLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.ContentHandler |
|---|
endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping |
| Methods inherited from interface org.xml.sax.ext.LexicalHandler |
|---|
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity |
| Methods inherited from interface org.apache.cocoon.xml.XMLProducer |
|---|
setConsumer |
| Constructor Detail |
|---|
public Include()
| Method Detail |
|---|
public 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.ProcessingException
SAXException
IOExceptionpublic 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.AbstractXMLPipeSAXException
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class org.apache.cocoon.xml.AbstractXMLPipeSAXException
public 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.
SAXException
public 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.
SAXException
public 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.AbstractXMLProducer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||