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
,AbstractSimpleMatcher
,NotMatcher
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, IHeaderMatcher.State
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructs the IHeaderMatcher with an id value. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.rat.analysis.IHeaderMatcher
currentState, finalizeState, matches, reset
-
Constructor Details
-
AbstractHeaderMatcher
Constructs the IHeaderMatcher with an id value. Ifid
is null then a unique random id is created.- Parameters:
id
- the Id to use.
-
-
Method Details
-
getId
Description copied from interface:IHeaderMatcher
Get the identifier for this matcher.All matchers must have unique identifiers
- Specified by:
getId
in interfaceIHeaderMatcher
- Returns:
- the Identifier for this matcher.
-
toString
-