Class MappingPropertyFilter

java.lang.Object
net.sf.json.filters.MappingPropertyFilter
All Implemented Interfaces:
PropertyFilter

public abstract class MappingPropertyFilter extends Object implements PropertyFilter
  • Field Details

    • filters

      private Map filters
  • Constructor Details

    • MappingPropertyFilter

      public MappingPropertyFilter()
    • MappingPropertyFilter

      public MappingPropertyFilter(Map filters)
  • Method Details

    • addPropertyFilter

      public void addPropertyFilter(Object target, PropertyFilter filter)
    • apply

      public boolean apply(Object source, String name, Object value)
      Specified by:
      apply in interface PropertyFilter
      Parameters:
      source - the owner of the property
      name - the name of the property
      value - the value of the property
      Returns:
      true if the property will be filtered out, false otherwise
    • removePropertyFilter

      public void removePropertyFilter(Object target)
    • keyMatches

      protected abstract boolean keyMatches(Object key, Object source, String name, Object value)