Gianugo Rabellino,
| 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 interface org.apache.cocoon.transformation.Transformer |
ROLE |
|
Method Summary |
void |
endElement(String uri,
String name,
String raw)
Intercept the end tag, convert buffered input to a String, build and execute the
DASL query. |
Serializable |
getKey()
generates the cachekey, which is the classname plus any possible COCOON parameters |
SourceValidity |
getValidity()
returns the validity which will be filled during processing of the requests |
protected void |
performSearchMethod(String query)
|
void |
recycle()
Forget about previous aggregated validity object |
void |
setup(SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
Set the SourceResolver, objectModel Map,
the source and sitemap Parameters used to process the request. |
void |
startElement(String uri,
String name,
String raw,
Attributes attr)
Intercept the start tag. |
| Methods inherited from class org.apache.cocoon.transformation.AbstractSAXTransformer |
addRecorder, characters, comment, configure, dispose, endCDATA, endDocument, endDTD, endEntity, endParametersRecording, endParametersRecording, endPrefixMapping, endRecording, endSAXRecording, endSerializedXMLRecording, endTextRecording, endTransformingElement, 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, startTransformingElement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PATH_NODE_NAME
protected static final String PATH_NODE_NAME
- See Also:
- Constant Field Values
RESOURCE_NODE_NAME
protected static final String RESOURCE_NODE_NAME
- See Also:
- Constant Field Values
DASLTransformer
public DASLTransformer()
startElement
public void startElement(String uri,
String name,
String raw,
Attributes attr)
throws SAXException
- Intercept the start tag.
- Specified by:
startElement in interface ContentHandler- Overrides:
startElement in class AbstractSAXTransformer
- Parameters:
uri - The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace
processing is not being performed.name - The local name (without prefix), or the empty string if
Namespace processing is not being performed.raw - The raw XML 1.0 name (with prefix), or the empty string if
raw names are not available.attr - The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.
- Throws:
SAXException- See Also:
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
endElement
public void endElement(String uri,
String name,
String raw)
throws SAXException
- Intercept the end tag, convert buffered input to a String, build and execute the
DASL query.
- Specified by:
endElement in interface ContentHandler- Overrides:
endElement in class AbstractSAXTransformer
- Parameters:
uri - The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace
processing is not being performed.name - The local name (without prefix), or the empty string if
Namespace processing is not being performed.raw - The raw XML 1.0 name (with prefix), or the empty string if
raw names are not available.
- Throws:
SAXException- See Also:
ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
performSearchMethod
protected void performSearchMethod(String query)
throws SAXException
- Throws:
SAXException
setup
public void setup(SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
throws ProcessingException,
SAXException,
IOException
- Description copied from interface:
SitemapModelComponent
- Set the
SourceResolver, objectModel Map,
the source and sitemap Parameters used to process the request.
- Specified by:
setup in interface SitemapModelComponent- Overrides:
setup in class AbstractSAXTransformer
- Throws:
ProcessingException
SAXException
IOException
recycle
public void recycle()
- Forget about previous aggregated validity object
- Specified by:
recycle in interface Recyclable- Overrides:
recycle in class AbstractSAXTransformer
getKey
public Serializable getKey()
- generates the cachekey, which is the classname plus any possible COCOON parameters
- Specified by:
getKey in interface CacheableProcessingComponent
- Returns:
- The generated key or
null if the component
is currently not cacheable.
getValidity
public SourceValidity getValidity()
- returns the validity which will be filled during processing of the requests
- Specified by:
getValidity in interface CacheableProcessingComponent
- Returns:
- The generated validity object or
null if the
component is currently not cacheable.
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.