Class AbstractBuilder

java.lang.Object
org.apache.rat.configuration.builders.AbstractBuilder
All Implemented Interfaces:
IHeaderMatcher.Builder
Direct Known Subclasses:
ChildContainerBuilder, CopyrightBuilder, MatcherRefBuilder, RegexBuilder, SpdxBuilder, TextBuilder

public abstract class AbstractBuilder extends Object implements IHeaderMatcher.Builder
An abstract IHeaderMatcher.Builder.
  • Constructor Details

    • AbstractBuilder

      protected AbstractBuilder()
      Protected empty constructor.
  • Method Details

    • setId

      public final AbstractBuilder setId(String id)
      Set the id for the matcher.
      Parameters:
      id - the id to use.
      Returns:
      this builder for chaining.
    • hasId

      public final boolean hasId()
      Returns:
      true if the id is not null and not blank.
    • getId

      protected String getId()
      Returns:
      the id as specified in the builder.
    • toString

      public String toString()
      Overrides:
      toString in class Object