Class FullTextMatcher
java.lang.Object
org.apache.rat.analysis.matchers.AbstractHeaderMatcher
org.apache.rat.analysis.matchers.SimpleTextMatcher
org.apache.rat.analysis.matchers.FullTextMatcher
- All Implemented Interfaces:
IHeaderMatcher
Accumulates all letters and numbers contained inside the header and compares
it to the full text of a given license (after reducing it to letters and
numbers as well).
The text comparison is case-insensitive but assumes only characters in the US-ASCII charset are being matched.
-
Nested Class Summary
Nested classes/interfaces inherited from interface IHeaderMatcher
IHeaderMatcher.Builder -
Constructor Summary
ConstructorsConstructorDescriptionFullTextMatcher(String simpleText) Constructs the full text matcher with a unique random id and the specified text to match.FullTextMatcher(String id, String simpleText) Constructs the full text matcher for the specified text. -
Method Summary
Methods inherited from class SimpleTextMatcher
getSimpleTextMethods inherited from class AbstractHeaderMatcher
getId, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IHeaderMatcher
getDescription, reset
-
Constructor Details
-
FullTextMatcher
Constructs the full text matcher with a unique random id and the specified text to match.- Parameters:
simpleText- the text to match
-
FullTextMatcher
-
-
Method Details
-
prune
-
matches
Description copied from interface:IHeaderMatcherAttempts to match text in the IHeaders instance.- Specified by:
matchesin interfaceIHeaderMatcher- Overrides:
matchesin classSimpleTextMatcher- Parameters:
headers- the representations of the headers to check- Returns:
trueif the matcher matches the text,falseotherwise.
-