|
|||||||||||
| 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.apache.cocoon.transformation.AbstractSAXTransformer
org.apache.cocoon.transformation.JPathTransformer
Transformer implementation of the JPath XSP tag library.
This transformer (so far) supports the following jpath elements:
<form name="myform" jpath:action="../cont/id">..</form>
| Field Summary | |
static String |
JPATH_ACTION
jpath:action attribute constant |
static String |
JPATH_CONTINUATION
jpath:continuation element constant |
static String |
JPATH_CONTINUATION_SELECT
jpath:continuation select attribute constant |
static String |
JPATH_IF
jpath:if element constant |
static String |
JPATH_NAMESPACE_URI
namespace constant |
static String |
JPATH_TEST
jpath generic test attribute |
static String |
JPATH_VALUEOF
jpath:value-of element constant |
static String |
JPATH_VALUEOF_SELECT
jpath:value-of select attribute constant |
| Fields inherited from class org.apache.cocoon.transformation.AbstractSAXTransformer |
context, defaultNamespaceURI, EMPTY_ATTRIBUTES, ignoreEmptyCharacters, ignoreEventsCount, ignoreHooksCount, ignoreWhitespaces, manager, namespaceURI, objectModel, parameters, recorderStack, removeOurNamespacePrefixes, 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 | |
JPathTransformer()
Constructor. |
|
| Method Summary | |
void |
endTransformingElement(String uri,
String name,
String raw)
Exit method for all elements in our namespace |
void |
initialize()
Initialize this transformer. |
void |
recycle()
Release all held resources. |
void |
setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
Parameters parameters)
Setup this transformer |
void |
startElement(String uri,
String loc,
String raw,
Attributes a)
Intercept startElement to ensure all <jpath:action> attributes are modified. |
void |
startTransformingElement(String uri,
String name,
String raw,
Attributes attr)
Entry method for all elements in our namespace |
| Methods inherited from class org.apache.cocoon.transformation.AbstractSAXTransformer |
addRecorder, characters, comment, configure, dispose, endCDATA, endDocument, endDTD, endElement, endEntity, endParametersRecording, endParametersRecording, endPrefixMapping, endRecording, endSAXRecording, endSerializedXMLRecording, endTextRecording, findPrefixMapping, getMutableAttributes, ignorableWhitespace, processingInstruction, removeRecorder, sendEndElementEvent, sendEndElementEventNS, sendEndPrefixMapping, sendEvents, sendParametersEvents, sendStartElementEvent, sendStartElementEvent, sendStartElementEventNS, sendStartElementEventNS, sendStartPrefixMapping, sendTextEvent, service, setDocumentLocator, setupTransforming, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startParametersRecording, startPrefixMapping, startRecording, startSAXRecording, startSerializedXMLRecording, startTextRecording |
| 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.apache.cocoon.xml.XMLProducer |
setConsumer |
| Field Detail |
public static final String JPATH_NAMESPACE_URI
public static final String JPATH_ACTION
public static final String JPATH_VALUEOF
public static final String JPATH_VALUEOF_SELECT
public static final String JPATH_CONTINUATION
public static final String JPATH_CONTINUATION_SELECT
public static final String JPATH_IF
public static final String JPATH_TEST
| Constructor Detail |
public JPathTransformer()
| Method Detail |
public void initialize()
throws Exception
initialize in interface InitializableException - if an error occurs
public void setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
Parameters parameters)
throws org.apache.cocoon.ProcessingException,
SAXException,
IOException
setup in interface org.apache.cocoon.sitemap.SitemapModelComponentresolver - a SourceResolver instanceobjectModel - the objectModelsrc - src parameterparameters - optional parameters
org.apache.cocoon.ProcessingException - if an error occurs
SAXException - if an error occurs
IOException - if an error occurs
public void startElement(String uri,
String loc,
String raw,
Attributes a)
throws SAXException
startElement in interface ContentHandleruri - a String valueloc - a String valueraw - a String valuea - an Attributes value
SAXException - if an error occurs
public void startTransformingElement(String uri,
String name,
String raw,
Attributes attr)
throws org.apache.cocoon.ProcessingException,
IOException,
SAXException
uri - a String valuename - a String valueraw - a String valueattr - an Attributes value
org.apache.cocoon.ProcessingException - if an error occurs
IOException - if an error occurs
SAXException - if an error occurs
public void endTransformingElement(String uri,
String name,
String raw)
throws org.apache.cocoon.ProcessingException,
IOException,
SAXException
uri - a String valuename - a String valueraw - a String value
org.apache.cocoon.ProcessingException - if an error occurs
IOException - if an error occurs
SAXException - if an error occurspublic void recycle()
recycle in interface Recyclable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||