Class RegexBuilder

java.lang.Object
org.apache.rat.configuration.builders.AbstractBuilder
org.apache.rat.configuration.builders.RegexBuilder
All Implemented Interfaces:
IHeaderMatcher.Builder

public class RegexBuilder extends AbstractBuilder
A builder for the regex matcher.
  • Constructor Details

    • RegexBuilder

      public RegexBuilder()
  • Method Details

    • setExpr

      public RegexBuilder setExpr(String exp)
      Sets the regex expression. This method compiles the string into a pattern and may throw any exception thrown by the Pattern.compile(String) method.
      Parameters:
      exp - the expression as a string.
      Returns:
      this builder for chaining.
      See Also:
      Pattern.compile(String)
    • build

      public IHeaderMatcher build()
      Description copied from interface: IHeaderMatcher.Builder
      Build the IHeaderMatcher.
      Returns:
      a new IHeaderMatcher.
    • toString

      public String toString()
      Overrides:
      toString in class AbstractBuilder