Class AbstractHeaderMatcher

java.lang.Object
org.apache.rat.analysis.matchers.AbstractHeaderMatcher
All Implemented Interfaces:
IHeaderMatcher
Direct Known Subclasses:
AbstractMatcherContainer, AbstractSimpleMatcher, NotMatcher

public abstract class AbstractHeaderMatcher extends Object implements IHeaderMatcher
An abstract class to simplify IHeaderMatcher creation. This class ensures that the id is set.
  • Constructor Details

    • AbstractHeaderMatcher

      protected AbstractHeaderMatcher(String id)
      Constructs the IHeaderMatcher with an id value. If id is null then a unique random id is created.
      Parameters:
      id - the Id to use.
  • Method Details

    • getId

      public String getId()
      Description copied from interface: IHeaderMatcher
      Get the identifier for this matcher.

      All matchers must have unique identifiers

      Specified by:
      getId in interface IHeaderMatcher
      Returns:
      the Identifier for this matcher.
    • toString

      public String toString()
      Overrides:
      toString in class Object