Class NegatingFilter

java.lang.Object
de.uni_hildesheim.sse.easy.loader.framework.NegatingFilter
All Implemented Interfaces:
IBundleFilter

public class NegatingFilter extends Object implements IBundleFilter
Implements a negating delegating filter, i.e., a filter which obtains the initial results from a delegate filter and negates the return values.
Author:
Holger Eichelberger
  • Field Details

  • Constructor Details

    • NegatingFilter

      public NegatingFilter(IBundleFilter filter)
      Creates a negating delegating filter.
      Parameters:
      filter - the filter to obtain the results from
  • Method Details

    • acceptJar

      public boolean acceptJar(File jar)
      Description copied from interface: IBundleFilter
      Returns whether the given jar shall be accepted.
      Specified by:
      acceptJar in interface IBundleFilter
      Parameters:
      jar - the JAR to be analyzed
      Returns:
      true if it shall be accepted, false else
    • acceptSymbolicName

      public boolean acceptSymbolicName(String name)
      Description copied from interface: IBundleFilter
      Returns whether the given symbolic name shall be accepted.
      Specified by:
      acceptSymbolicName in interface IBundleFilter
      Parameters:
      name - the name to be analyzed
      Returns:
      true if it shall be accepted, false else