Class JRHyperlinkProducerFactory
- java.lang.Object
-
- net.sf.jasperreports.engine.export.JRHyperlinkProducerFactory
-
- Direct Known Subclasses:
DefaultHyperlinkProducerFactory
,JRHyperlinkProducerMapFactory
,ReportExecutionHyperlinkProducerFactory
,ReportExecutionHyperlinkProducerFactory
public abstract class JRHyperlinkProducerFactory extends Object
An abstract factory ofhyperlink producers
.The factory is responsible for returning a hyperlink producer for a custom hyperlink type.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description JRHyperlinkProducerFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract JRHyperlinkProducer
getHandler(String linkType)
Returns the hyperlink producer associated with a specific hyperlink type.String
produceHyperlink(JRPrintHyperlink hyperlink)
Generates the String hyperlink for a hyperlink instance based on its type and on the associated hyperlink producer.
-
-
-
Method Detail
-
getHandler
public abstract JRHyperlinkProducer getHandler(String linkType)
Returns the hyperlink producer associated with a specific hyperlink type.- Parameters:
linkType
- the hyperlink type- Returns:
- an associated hyperlink producer, or
null
when none associated
-
produceHyperlink
public String produceHyperlink(JRPrintHyperlink hyperlink)
Generates the String hyperlink for a hyperlink instance based on its type and on the associated hyperlink producer.- Parameters:
hyperlink
- the hyperlink instance- Returns:
- the genereated String hyperlink
- See Also:
JRHyperlinkProducer.getHyperlink(JRPrintHyperlink)
-
-