Class TraceableDocumentNameMatcher

java.lang.Object
org.apache.rat.document.impl.TraceableDocumentNameMatcher
All Implemented Interfaces:
DocumentNameMatcher

public class TraceableDocumentNameMatcher extends Object implements DocumentNameMatcher
A PatternMatcher that will emit trace messages during execution if the environment variable is set. Also provides a printable name for general logging.
  • Field Details

    • ENV_VAR

      public static final String ENV_VAR
      The environment variable to set to enable tracing for the PatternMatcher execution
    • name

      protected final Supplier<String> name
      The supplier for the name
    • TRUE

      public static final TraceableDocumentNameMatcher TRUE
      A TraceableDocumentNameMatcher that always returns true
    • FALSE

      public static final TraceableDocumentNameMatcher FALSE
      A TraceableDocumentNameMatcher that always returns false
  • Constructor Details

    • TraceableDocumentNameMatcher

      protected TraceableDocumentNameMatcher(Supplier<String> name, DocumentNameMatcher delegate)
      Creates a traceable pattern matcher with the specified name.
      Parameters:
      name - the name of the pattern matcher.
      delegate - the delegate that actually does the work.
  • Method Details