Class SPDXMatcherFactory.Match

java.lang.Object
org.apache.rat.analysis.matchers.AbstractHeaderMatcher
org.apache.rat.analysis.matchers.SPDXMatcherFactory.Match
All Implemented Interfaces:
IHeaderMatcher
Enclosing class:
SPDXMatcherFactory

public class SPDXMatcherFactory.Match extends AbstractHeaderMatcher
Matches an SPDX identifier.
  • Method Details

    • getName

      public String getName()
      Gets the name of this matcher. Same as the SPDX identifier.
      Returns:
      name of this matcher, that equals the SPDX identifier.
    • matches

      public boolean matches(IHeaders headers)
      Description copied from interface: IHeaderMatcher
      Attempts to match text in the IHeaders instance.
      Parameters:
      headers - the representations of the headers to check
      Returns:
      true if the matcher matches the text, false otherwise.
    • reset

      public void reset()
      Description copied from interface: IHeaderMatcher
      Resets this state of this matcher to its initial state in preparation for use with another document scan. In most cases this method does not need to do anything.