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

public class TextBuilder extends AbstractBuilder
Builds a text matcher. The specific implementation is based on the complexity of the text to match.
  • Constructor Details

    • TextBuilder

      public TextBuilder()
  • Method Details

    • setSimpleText

      public TextBuilder setSimpleText(String text)
      Sets the text to match.
      Parameters:
      text - the text to match
      Returns:
      this builder.
    • build

      public SimpleTextMatcher build()
      Description copied from interface: IHeaderMatcher.Builder
      Build the IHeaderMatcher.

      Implementations of this interface should return a specific child class of IHeaderMatcher.

      Returns:
      a new IHeaderMatcher.
    • toString

      public String toString()
      Overrides:
      toString in class AbstractBuilder