|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.xml.AbstractXMLProducer org.apache.cocoon.xml.AbstractXMLPipe org.apache.cocoon.transformation.AbstractTransformer org.apache.cocoon.transformation.XIncludeTransformer
public class XIncludeTransformer
Field Summary | |
---|---|
protected ServiceManager |
manager
|
protected SourceResolver |
resolver
|
protected MultiSourceValidity |
validity
The SourceValidity instance associated with this request. |
static String |
XINCLUDE_FALLBACK_ELEMENT
|
static String |
XINCLUDE_INCLUDE_ELEMENT
|
static String |
XINCLUDE_INCLUDE_ELEMENT_HREF_ATTRIBUTE
|
static String |
XINCLUDE_INCLUDE_ELEMENT_PARSE_ATTRIBUTE
|
static String |
XINCLUDE_INCLUDE_ELEMENT_XPOINTER_ATTRIBUTE
|
static String |
XINCLUDE_NAMESPACE_URI
|
static String |
XMLBASE_ATTRIBUTE
|
static String |
XMLBASE_ATTRIBUTE_TYPE
|
static String |
XMLBASE_NAMESPACE_PREFIX
|
static String |
XMLBASE_NAMESPACE_URI
Deprecated. Should be removed in cocoon 2.2. Use javax.xml.XMLConstants.XML_NS_URI instead. |
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 | |
---|---|
XIncludeTransformer()
|
Method Summary | |
---|---|
Serializable |
getKey()
Key to be used for caching |
SourceValidity |
getValidity()
Get the validity for this transform |
void |
recycle()
Recycle the producer by removing references, and resetting handlers to null (empty) implementations. |
void |
service(ServiceManager manager)
|
void |
setConsumer(XMLConsumer consumer)
Set the XMLConsumer that will receive XML data. |
void |
setContentHandler(ContentHandler handler)
Set the ContentHandler that will receive XML data. |
void |
setLexicalHandler(LexicalHandler handler)
Set the LexicalHandler that will receive XML data. |
void |
setup(SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters)
Set the SourceResolver , objectModel Map ,
the source and sitemap Parameters used to process the request. |
Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe |
---|
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
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 |
---|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
Methods inherited from interface org.xml.sax.ext.LexicalHandler |
---|
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity |
Field Detail |
---|
protected SourceResolver resolver
protected ServiceManager manager
public static final String XMLBASE_NAMESPACE_URI
public static final String XMLBASE_NAMESPACE_PREFIX
public static final String XMLBASE_ATTRIBUTE
public static final String XMLBASE_ATTRIBUTE_TYPE
public static final String XINCLUDE_NAMESPACE_URI
public static final String XINCLUDE_INCLUDE_ELEMENT
public static final String XINCLUDE_FALLBACK_ELEMENT
public static final String XINCLUDE_INCLUDE_ELEMENT_HREF_ATTRIBUTE
public static final String XINCLUDE_INCLUDE_ELEMENT_XPOINTER_ATTRIBUTE
public static final String XINCLUDE_INCLUDE_ELEMENT_PARSE_ATTRIBUTE
protected MultiSourceValidity validity
SourceValidity
instance associated with this request.
Constructor Detail |
---|
public XIncludeTransformer()
Method Detail |
---|
public void setup(SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws ProcessingException, SAXException, IOException
SitemapModelComponent
SourceResolver
, objectModel Map
,
the source and sitemap Parameters
used to process the request.
setup
in interface SitemapModelComponent
ProcessingException
SAXException
IOException
public void setConsumer(XMLConsumer consumer)
AbstractXMLProducer
XMLConsumer
that will receive XML data.
setContentHandler(consumer)
and setLexicalHandler(consumer)
.
setConsumer
in interface XMLProducer
setConsumer
in class AbstractXMLProducer
public void setContentHandler(ContentHandler handler)
AbstractXMLProducer
ContentHandler
that will receive XML data.
ContentHandler
instance
accessing the protected super.contentHandler
field.
setContentHandler
in class AbstractXMLProducer
public void setLexicalHandler(LexicalHandler handler)
AbstractXMLProducer
LexicalHandler
that will receive XML data.
LexicalHandler
instance
accessing the protected super.lexicalHandler
field.
setLexicalHandler
in class AbstractXMLProducer
public void service(ServiceManager manager)
service
in interface Serviceable
public Serializable getKey()
getKey
in interface CacheableProcessingComponent
null
if the component
is currently not cacheable.public SourceValidity getValidity()
getValidity
in interface CacheableProcessingComponent
null
if the
component is currently not cacheable.public void recycle()
AbstractXMLProducer
recycle
in interface Recyclable
recycle
in class AbstractXMLProducer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |