net.sf.jasperreports.engine.export

## Class ElementKeyExporterFilter

- java.lang.Object
- - 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 5878 2013-01-07 20:23:13Z teodord $
  Author:
    Lucian Chirita (lucianc@users.sourceforge.net)

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ElementKeyExporterFilter(java.util.Set<java.lang.String> excludedKeys)` Creates a filter instance.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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