Package org.apache.rat.analysis.matchers
Class AbstractHeaderMatcher
java.lang.Object
org.apache.rat.analysis.matchers.AbstractHeaderMatcher
- All Implemented Interfaces:
IHeaderMatcher
- Direct Known Subclasses:
AbstractMatcherContainer,CopyrightMatcher,NotMatcher,SimpleRegexMatcher,SimpleTextMatcher,SPDXMatcherFactory.Match
An abstract class to simplify IHeaderMatcher creation.
This class ensures that the id is set.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.rat.analysis.IHeaderMatcher
IHeaderMatcher.Builder -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs the IHeaderMatcher with an id value. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.rat.analysis.IHeaderMatcher
getDescription, matches, reset
-
Constructor Details
-
AbstractHeaderMatcher
Constructs the IHeaderMatcher with an id value. Ifidis null then a unique random id is created.- Parameters:
id- the id to use.
-
-
Method Details
-
getId
Description copied from interface:IHeaderMatcherGet the identifier for this matcher.All matchers must have unique identifiers
- Specified by:
getIdin interfaceIHeaderMatcher- Returns:
- the identifier for this matcher.
-
toString
-