Class JRHyperlinkProducerMapFactory

  • All Implemented Interfaces:
    java.io.Serializable

    public class JRHyperlinkProducerMapFactory
    extends JRHyperlinkProducerFactory
    implements java.io.Serializable
    Map-based hyperlink producer factory implementation.

    This implementation wraps a hyperlink type to hyperling producer instance association map.

    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    See Also:
    Serialized Form
    • Constructor Detail

      • JRHyperlinkProducerMapFactory

        public JRHyperlinkProducerMapFactory()
        Creates a blank factory.
    • Method Detail

      • getProducersMap

        public java.util.Map<java.lang.String,​JRHyperlinkProducer> getProducersMap()
        Exposes the type to producer association map.
        Returns:
        the type to producer association map
      • setProducersMap

        public void setProducersMap​(java.util.Map<java.lang.String,​JRHyperlinkProducer> producers)
        Sets the type to producer association map.
        Parameters:
        producers - bulk type to producer association map
        See Also:
        getProducersMap()
      • addProducer

        public void addProducer​(java.lang.String linkType,
                                JRHyperlinkProducer producer)
        Adds a hyperlink producer instance associated to a hyperlink type.
        Parameters:
        linkType - the type
        producer - the producer
      • removeProducer

        public JRHyperlinkProducer removeProducer​(java.lang.String linkType)
        Removes a type to producer association.
        Parameters:
        linkType - the hyperlink type
        Returns:
        the producer which was associated to the type, if any