Class DefaultExporterFilterFactory
- java.lang.Object
-
- net.sf.jasperreports.engine.export.DefaultExporterFilterFactory
-
- All Implemented Interfaces:
ExporterFilterFactory
public class DefaultExporterFilterFactory extends java.lang.Object implements ExporterFilterFactory
Default exporter filter factory. The factory searches for all registered filter factories and collects all filters produced by these factories for a specific exporter context.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
getFilter(JRExporterContext)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROPERTY_EXPORTER_FILTER_FACTORY_PREFIX
The prefix of properties that are used to register filter factories.
-
Constructor Summary
Constructors Constructor Description DefaultExporterFilterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<ExporterFilterFactory>
getAllFilterFactories(JasperReportsContext jasperReportsContext, JasperPrint report)
ExporterFilter
getFilter(JRExporterContext exporterContext)
The method searches for all filter factories registered vianet.sf.jasperreports.export.filter.factory.*
properties, calls each factory and collects the returned filters.protected ExporterFilterFactory
getFilterFactory(java.lang.String factoryClassName)
-
-
-
Field Detail
-
PROPERTY_EXPORTER_FILTER_FACTORY_PREFIX
public static final java.lang.String PROPERTY_EXPORTER_FILTER_FACTORY_PREFIX
The prefix of properties that are used to register filter factories.- See Also:
- Constant Field Values
-
-
Method Detail
-
getFilter
public ExporterFilter getFilter(JRExporterContext exporterContext) throws JRException
The method searches for all filter factories registered vianet.sf.jasperreports.export.filter.factory.*
properties, calls each factory and collects the returned filters. The method returns:null
, if no factory returned a not null filter.- an individual filter, if a single factory returned a not null filter.
- a
ExporterFilterContainer
instance, if several factories returned not null filters.
- Specified by:
getFilter
in interfaceExporterFilterFactory
- Parameters:
exporterContext
- the exporter context- Returns:
- an export filter for the exporter, or
null
if nothing is to be filtered - Throws:
JRException
- See Also:
PROPERTY_EXPORTER_FILTER_FACTORY_PREFIX
-
getAllFilterFactories
protected java.util.List<ExporterFilterFactory> getAllFilterFactories(JasperReportsContext jasperReportsContext, JasperPrint report) throws JRException
- Throws:
JRException
-
getFilterFactory
protected ExporterFilterFactory getFilterFactory(java.lang.String factoryClassName) throws JRException
- Throws:
JRException
-
-