Class SimpleTextMatcher
java.lang.Object
org.apache.rat.analysis.matchers.AbstractHeaderMatcher
org.apache.rat.analysis.matchers.SimpleTextMatcher
- All Implemented Interfaces:
IHeaderMatcher
- Direct Known Subclasses:
FullTextMatcher
A simple text matching IHeaderMatcher implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface IHeaderMatcher
IHeaderMatcher.Builder -
Constructor Summary
ConstructorsConstructorDescriptionSimpleTextMatcher(String simpleText) Constructs the simple text matcher for the simple string.SimpleTextMatcher(String id, String simpleText) Constructs the simple text matcher for the simple string. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAttempts to match text in the IHeaders instance.Methods 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
-
SimpleTextMatcher
Constructs the simple text matcher for the simple string.- Parameters:
simpleText- The pattern to match. Will only match a single line from the input stream.
-
SimpleTextMatcher
-
-
Method Details
-
getSimpleText
-
matches
Description copied from interface:IHeaderMatcherAttempts to match text in the IHeaders instance.- Parameters:
headers- the representations of the headers to check- Returns:
trueif the matcher matches the text,falseotherwise.
-