Class AbstractRegexpStringMatcher

All Implemented Interfaces:
Matcher, Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent
Direct Known Subclasses:
AttributeScopeRegexpMatcher, AttributeValueRegexpMatcher

public abstract class AbstractRegexpStringMatcher extends AbstractMatcher
General Matcher for regexp comparison of strings in Attribute Filters.
  • Field Details

  • Constructor Details

    • AbstractRegexpStringMatcher

      public AbstractRegexpStringMatcher()
  • Method Details

    • getRegularExpression

      @NonnullAfterInit public String getRegularExpression()
      Gets the regular expression to match.
      Returns:
      the regular expression
    • setPattern

      public void setPattern(@Nonnull Pattern thePattern)
      Sets the Pattern for matching to match.
      Parameters:
      thePattern - the pattern to match
    • regexpCompare

      protected boolean regexpCompare(@Nullable String value)
      Matches the given value against the provided regular expression.
      Parameters:
      value - the value to evaluate
      Returns:
      true if the value matches the given match string, false if not
    • doInitialize

      protected void doInitialize() throws ComponentInitializationException
      Overrides:
      doInitialize in class AbstractMatcher
      Throws:
      ComponentInitializationException