Class ElementKeyExporterFilterFactory
- java.lang.Object
-
- net.sf.jasperreports.engine.export.ElementKeyExporterFilterFactory
-
- All Implemented Interfaces:
ExporterFilterFactory
public class ElementKeyExporterFilterFactory extends java.lang.Object implements ExporterFilterFactory
Factory ofElementKeyExporterFilterinstances. The factory uses report properties to decide which element keys are to be filtered on export.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_EXCLUDED_KEY_PREFIXThe prefix of element exclusion properties.
-
Constructor Summary
Constructors Constructor Description ElementKeyExporterFilterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExporterFiltergetFilter(JRExporterContext exporterContext)The exported report is searched for element exclusion properties, and if any is found aElementKeyExporterFilterinstance is returned.
-
-
-
Field Detail
-
PROPERTY_EXCLUDED_KEY_PREFIX
public static final java.lang.String PROPERTY_EXCLUDED_KEY_PREFIX
The prefix of element exclusion properties. This prefix is appended to the exporter properties prefix, resulting in element exclusion properties such asnet.sf.jasperreports.export.xls.exclude.key.*.- See Also:
- Constant Field Values
-
-
Method Detail
-
getFilter
public ExporterFilter getFilter(JRExporterContext exporterContext) throws JRException
The exported report is searched for element exclusion properties, and if any is found aElementKeyExporterFilterinstance is returned. Each property results in a excluded element key in the following manner:- If the property value is not empty, it is used as excluded element key.
- Otherwise, the property suffix is used as element key.
- 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_EXCLUDED_KEY_PREFIX
-
-