Class DefaultExporterFilterFactory
java.lang.Object
net.sf.jasperreports.engine.export.DefaultExporterFilterFactory
- All Implemented Interfaces:
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe prefix of properties that are used to register filter factories. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<ExporterFilterFactory> getAllFilterFactories(JasperReportsContext jasperReportsContext, JasperPrint report) 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 ExporterFilterFactorygetFilterFactory(String factoryClassName)
-
Field Details
-
PROPERTY_EXPORTER_FILTER_FACTORY_PREFIX
The prefix of properties that are used to register filter factories.- See Also:
-
-
Constructor Details
-
DefaultExporterFilterFactory
public DefaultExporterFilterFactory()
-
-
Method Details
-
getFilter
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:
-
getAllFilterFactories
protected List<ExporterFilterFactory> getAllFilterFactories(JasperReportsContext jasperReportsContext, JasperPrint report) throws JRException - Throws:
JRException
-
getFilterFactory
- Throws:
JRException
-