Class SimpleManifestNameFilter

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

public class SimpleManifestNameFilter extends SimpleNameFilter
Implements a simple name filter filtering the symbolic name from the JAR manifests for the given regular expression.
Author:
Holger Eichelberger
  • Constructor Details

    • SimpleManifestNameFilter

      public SimpleManifestNameFilter(String regEx) throws PatternSyntaxException
      Creates a simple name filter from the given Java regular expression.
      Parameters:
      regEx - the regular expression to be considered
      Throws:
      PatternSyntaxException - in case that the pattern syntax is wrong
  • 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
      Overrides:
      acceptJar in class SimpleNameFilter
      Parameters:
      jar - the JAR to be analyzed
      Returns:
      true if it shall be accepted, false else