Class AbstractMatcher

java.lang.Object
io.fluentlenium.core.filter.matcher.AbstractMatcher
Direct Known Subclasses:
ContainsMatcher, ContainsWordMatcher, EndsWithMatcher, EqualMatcher, NotContainsMatcher, NotEndsWithMatcher, NotStartsWithMatcher, StartsWithMatcher

public abstract class AbstractMatcher extends Object
Abstract search matcher.
  • Constructor Details

    • AbstractMatcher

      protected AbstractMatcher (String value)
      Creates a new abstract search matcher.
      Parameters:
      value - string predicate
    • AbstractMatcher

      protected AbstractMatcher (Pattern value)
      Creates a new abstract search matcher.
      Parameters:
      value - regular expression predicate
  • Method Details

    • getValue

      public String getValue()
      return the given value
      Returns:
      value of matcher
    • getMatcherSymbol

      public String getMatcherSymbol()
      Return the matcher symbol
      Returns:
      matcher symbol
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isCssFilterSupported

      public final boolean isCssFilterSupported()
      Does this matcher supports CSS filtering.
      Returns:
      true if css filtering is supported, false otherwise
    • getPattern

      protected Pattern getPattern()
      return the pattern
      Returns:
      pattern
    • getMatcherType

      protected abstract MatcherType getMatcherType()
      Return the matcher type
      Returns:
      matcher type
    • isSatisfiedBy

      public abstract boolean isSatisfiedBy (String value)
      Check if the matcher is matched given the value
      Parameters:
      value - define the object of check name
      Returns:
      boolean value for isSatisfiedBy