net.sf.jasperreports.engine.export
Class ElementKeyExporterFilter

java.lang.Object
  extended by net.sf.jasperreports.engine.export.ElementKeyExporterFilter
All Implemented Interfaces:
ExporterFilter

public class ElementKeyExporterFilter
extends java.lang.Object
implements ExporterFilter

An exporter filter that excludes elements based on their keys. The filter uses a fixed set of elements keys to exclude.

Version:
$Id: ElementKeyExporterFilter.java 4595 2011-09-08 15:55:10Z teodord $
Author:
Lucian Chirita (lucianc@users.sourceforge.net)

Constructor Summary
ElementKeyExporterFilter(java.util.Set<java.lang.String> excludedKeys)
          Creates a filter instance.
 
Method Summary
 boolean isToExport(JRPrintElement element)
          Excludes elements whose keys match any of the excluded keys.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementKeyExporterFilter

public ElementKeyExporterFilter(java.util.Set<java.lang.String> excludedKeys)
Creates a filter instance.

Parameters:
excludedKeys - the set of keys to exclude
Method Detail

isToExport

public boolean isToExport(JRPrintElement element)
Excludes elements whose keys match any of the excluded keys. Elements with no keys are not excluded.

Specified by:
isToExport in interface ExporterFilter


© 2001-2010 Jaspersoft Corporation www.jaspersoft.com