This project has retired. For details please refer to its
Attic page .
LinkTranslator (Cocoon Core 2.2.0 API)
org.apache.cocoon.sitemap
Class LinkTranslator
java.lang.Object
org.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.xml.xlink.XLinkPipe
org.apache.cocoon.xml.xlink.ExtendedXLinkPipe
org.apache.cocoon.sitemap.LinkTranslator
All Implemented Interfaces: org.apache.cocoon.caching.CacheableProcessingComponent, ContentHandler , LexicalHandler , Poolable , Recyclable , org.apache.cocoon.sitemap.SitemapModelComponent, org.apache.cocoon.transformation.Transformer, org.apache.cocoon.xml.xlink.XLinkHandler, XMLConsumer , org.apache.cocoon.xml.XMLConsumer, org.apache.cocoon.xml.XMLPipe, org.apache.cocoon.xml.XMLProducer
public class LinkTranslator extends org.apache.cocoon.xml.xlink.ExtendedXLinkPipeimplements org.apache.cocoon.transformation.Transformer, org.apache.cocoon.caching.CacheableProcessingComponent
Version:
$Id: LinkTranslator.html 1304280 2012-03-23 11:18:01Z ilgrosso $
Fields inherited from class org.apache.cocoon.xml.xlink.XLinkPipe
XLINK_ACTUATE, XLINK_ARCROLE, XLINK_FROM, XLINK_HREF, XLINK_LABEL, XLINK_NAMESPACE_URI, XLINK_ROLE, XLINK_SHOW, XLINK_TITLE, XLINK_TO, XLINK_TYPE, XLINK_TYPE_ARC, XLINK_TYPE_EXTENDED, XLINK_TYPE_LOCATOR, XLINK_TYPE_RESOURCE, XLINK_TYPE_SIMPLE, XLINK_TYPE_TITLE
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
Method Summary
Serializable
getKey ()
Generate the unique key.
SourceValidity
getValidity ()
Generate the validity object.
void
setup (org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
Set the SourceResolver, objectModel Map,
the source and sitemap Parameters used to process the request.
void
simpleLink (String href,
String role,
String arcrole,
String title,
String show,
String actuate,
String uri,
String name,
String raw,
Attributes attr)
void
startLocator (String href,
String role,
String title,
String label,
String uri,
String name,
String raw,
Attributes attr)
Methods inherited from class org.apache.cocoon.xml.xlink.ExtendedXLinkPipe
arrayToSet, startElement
Methods inherited from class org.apache.cocoon.xml.xlink.XLinkPipe
endArc, endElement, endExtendedLink, endLocator, linkResource, linkTitle, startArc, startExtendedLink
Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe
characters, comment, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
recycle, 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
characters , endDocument , endElement , endPrefixMapping , ignorableWhitespace , processingInstruction , setDocumentLocator , skippedEntity , startDocument , startElement , startPrefixMapping
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
LinkTranslator
public LinkTranslator ()
setup
public void setup (org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
throws org.apache.cocoon.ProcessingException,
SAXException ,
IOException
Set the SourceResolver, objectModel Map,
the source and sitemap Parameters used to process the request.
Specified by: setup in interface org.apache.cocoon.sitemap.SitemapModelComponent
Throws:
org.apache.cocoon.ProcessingException
SAXException
IOException
getKey
public Serializable getKey ()
Generate the unique key.
This key must be unique inside the space of this component.
Specified by: getKey in interface org.apache.cocoon.caching.CacheableProcessingComponent
Returns: The generated key hashes the src
getValidity
public SourceValidity getValidity ()
Generate the validity object.
Specified by: getValidity in interface org.apache.cocoon.caching.CacheableProcessingComponent
Returns: The generated validity object or null if the
component is currently not cacheable.
simpleLink
public void simpleLink (String href,
String role,
String arcrole,
String title,
String show,
String actuate,
String uri,
String name,
String raw,
Attributes attr)
throws SAXException
Specified by: simpleLink in interface org.apache.cocoon.xml.xlink.XLinkHandler
Throws:
SAXException
startLocator
public void startLocator (String href,
String role,
String title,
String label,
String uri,
String name,
String raw,
Attributes attr)
throws SAXException
Specified by: startLocator in interface org.apache.cocoon.xml.xlink.XLinkHandler
Throws:
SAXException
Copyright © 1999-2008 The Apache Software Foundation . All Rights Reserved.