Class DefaultExporterFilterFactory
- java.lang.Object
-
- net.sf.jasperreports.engine.export.DefaultExporterFilterFactory
-
- All Implemented Interfaces:
ExporterFilterFactory
public class DefaultExporterFilterFactory extends 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 StringPROPERTY_EXPORTER_FILTER_FACTORY_PREFIXThe 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 List<ExporterFilterFactory>getAllFilterFactories(JasperReportsContext jasperReportsContext, JasperPrint report)ExporterFiltergetFilter(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 ExporterFilterFactorygetFilterFactory(String factoryClassName)
-
-
-
Field Detail
-
PROPERTY_EXPORTER_FILTER_FACTORY_PREFIX
public static final 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
ExporterFilterContainerinstance, if several factories returned not null filters.
- Specified by:
getFilterin interfaceExporterFilterFactory- Parameters:
exporterContext- the exporter context- Returns:
- an export filter for the exporter, or
nullif nothing is to be filtered - Throws:
JRException- See Also:
PROPERTY_EXPORTER_FILTER_FACTORY_PREFIX
-
getAllFilterFactories
protected List<ExporterFilterFactory> getAllFilterFactories(JasperReportsContext jasperReportsContext, JasperPrint report) throws JRException
- Throws:
JRException
-
getFilterFactory
protected ExporterFilterFactory getFilterFactory(String factoryClassName) throws JRException
- Throws:
JRException
-
-