Class FilterFactory

java.lang.Object
org.czeal.jsonfilter.FilterFactory

public class FilterFactory extends Object
A factory class for creating filtering strategy implementations.

This factory provides instances of filters that can either include or exclude specified JSON elements based on a given filtering strategy.

Supported filtering strategies:

  • INCLUSION - Retains only the specified JSON elements.
  • EXCLUSION - Removes the specified JSON elements.

Usage example:

 
 FilterFactory factory = new FilterFactory();

 Filter filter = factory.create(FilterType.INCLUSION);
 
 
Author:
Hideki Ikeda
  • Constructor Details

    • FilterFactory

      public FilterFactory()
  • Method Details