Class TextBuilder
java.lang.Object
org.apache.rat.configuration.builders.AbstractBuilder
org.apache.rat.configuration.builders.TextBuilder
- All Implemented Interfaces:
IHeaderMatcher.Builder
- Direct Known Subclasses:
Text
Builds a text matcher. The specific implementation is based on the complexity of the text to match.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the IHeaderMatcher.setSimpleText(String text) Sets the text to match.toString()Methods inherited from class AbstractBuilder
getId, hasId, setIdMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IHeaderMatcher.Builder
getDescription
-
Constructor Details
-
TextBuilder
public TextBuilder()
-
-
Method Details
-
setSimpleText
Sets the text to match.- Parameters:
text- the text to match- Returns:
- this builder.
-
build
Description copied from interface:IHeaderMatcher.BuilderBuild the IHeaderMatcher.Implementations of this interface should return a specific child class of IHeaderMatcher.
- Returns:
- a new IHeaderMatcher.
-
toString
- Overrides:
toStringin classAbstractBuilder
-