|
||||||||||
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.AbstractSAXTransformer org.apache.cocoon.portal.transformation.AbstractCopletTransformer org.apache.cocoon.portal.transformation.CopletTransformer
public class CopletTransformer
This transformer offers various functions for developing pipeline based coplets.
Includes coplet instance data by using JXPath expressions.
The transformer searches for tags <coplet:coplet xmlns:coplet="http://apache.org/cocoon/portal/coplet/1.0">.
They must have an attribute "select" that contains a valid JXPath expression applying to the coplet instance data.
Example:
<maxpageable xmlns:coplet="http://apache.org/cocoon/portal/coplet/1.0"> <coplet:coplet select="copletData.maxpageable"/> </maxpageable>The transformer will insert the boolean value specifying whether the coplet is maxpageable or not.
Field Summary | |
---|---|
protected List |
collectedEvents
The collected list of events |
protected XMLizable |
content
The content of the links |
static String |
CONTENT_ELEM
The content for the links element |
static String |
COPLET_ELEM
The XML element name to listen for. |
protected boolean |
insideLinks
Are we inside a links element? |
static String |
LINK_ELEM
The XML element name to listen for. |
static String |
LINKS_ELEM
Create a link containing several events |
static String |
NAMESPACE_URI
The namespace URI to listen for. |
static String |
PARAMETER_ELEM
Create a link containing several events |
static String |
SELECT_ATTR
The attribute containing the JXPath expression. |
Fields inherited from class org.apache.cocoon.portal.transformation.AbstractCopletTransformer |
---|
COPLET_ID_PARAM, portalService |
Fields inherited from class org.apache.cocoon.transformation.AbstractSAXTransformer |
---|
context, defaultNamespaceURI, EMPTY_ATTRIBUTES, emptyAttributes, ignoreEmptyCharacters, ignoreEventsCount, ignoreHooksCount, ignoreWhitespaces, manager, namespaceURI, objectModel, parameters, recorderStack, request, resolver, response, source, stack |
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 | |
---|---|
CopletTransformer()
Creates new CopletTransformer. |
Method Summary | |
---|---|
void |
endTransformingElement(String uri,
String name,
String raw)
Overridden from superclass. |
protected void |
output(String uri,
String format,
AttributesImpl newAttrs)
Output the link |
void |
setupTransforming()
Setup the transformation of an xml document. |
void |
startTransformingElement(String uri,
String name,
String raw,
Attributes attr)
Overridden from superclass. |
Methods inherited from class org.apache.cocoon.portal.transformation.AbstractCopletTransformer |
---|
dispose, getCopletInstanceData, getCopletInstanceData, getPortalService, service |
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
---|
setConsumer, setContentHandler, setLexicalHandler |
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.apache.cocoon.xml.XMLProducer |
---|
setConsumer |
Field Detail |
---|
public static final String NAMESPACE_URI
public static final String COPLET_ELEM
public static final String SELECT_ATTR
public static final String LINK_ELEM
public static final String LINKS_ELEM
public static final String PARAMETER_ELEM
public static final String CONTENT_ELEM
protected boolean insideLinks
protected List collectedEvents
protected XMLizable content
Constructor Detail |
---|
public CopletTransformer()
Method Detail |
---|
public void setupTransforming() throws IOException, ProcessingException, SAXException
AbstractSAXTransformer
setupTransforming
in class AbstractSAXTransformer
IOException
ProcessingException
SAXException
public void startTransformingElement(String uri, String name, String raw, Attributes attr) throws ProcessingException, IOException, SAXException
startTransformingElement
in class AbstractSAXTransformer
uri
- The namespace of the element.name
- The local name of the element.raw
- The qualified name of the element.attr
- The attributes of the element.
ProcessingException
IOException
SAXException
public void endTransformingElement(String uri, String name, String raw) throws ProcessingException, IOException, SAXException
endTransformingElement
in class AbstractSAXTransformer
uri
- The namespace of the element.name
- The local name of the element.raw
- The qualified name of the element.
ProcessingException
IOException
SAXException
protected void output(String uri, String format, AttributesImpl newAttrs) throws SAXException
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |