Class MatcherConstructor

java.lang.Object
io.fluentlenium.core.filter.MatcherConstructor

public final class MatcherConstructor extends Object
Matcher constructors.
  • Method Details

    • contains

      public static AbstractMatcher contains(String matcher)
      Create a matcher for a containing string
      Parameters:
      matcher - string matcher
      Returns:
      matcher object
    • contains

      public static AbstractMatcher contains(Pattern pattern)
      Create a matcher for a containing pattern
      Parameters:
      pattern - pattern object
      Returns:
      matcher object
    • notContains

      public static AbstractMatcher notContains(String matcher)
      Create a matcher for not containing a string
      Parameters:
      matcher - string matcher
      Returns:
      matcher object
    • notContains

      public static AbstractMatcher notContains(Pattern pattern)
      Create a matcher for not containing the pattern
      Parameters:
      pattern - string pattern
      Returns:
      matcher object
    • equal

      public static AbstractMatcher equal(String matcher)
      Create a matcher to equal the string matcher
      Parameters:
      matcher - string matcher
      Returns:
      matcher object
    • regex

      public static Pattern regex(String pattern)
      Create a Pattern given a regex. The regex is compile.
      Parameters:
      pattern - string pattern
      Returns:
      pattern
    • startsWith

      public static AbstractMatcher startsWith(String matcher)
      Create a matcher filtering by a string that start with the matcher
      Parameters:
      matcher - string matcher
      Returns:
      matcher object
    • startsWith

      public static AbstractMatcher startsWith(Pattern pattern)
      Create a matcher filtering by a string that start with the matcher
      Parameters:
      pattern - pattern
      Returns:
      matcher object
    • endsWith

      public static AbstractMatcher endsWith(String matcher)
      Create a matcher filtering by a string that ends with the matcher
      Parameters:
      matcher - string matcher
      Returns:
      matcher
    • endsWith

      public static AbstractMatcher endsWith(Pattern pattern)
      Create a matcher filtering by a string that ends with the pattern
      Parameters:
      pattern - pattern
      Returns:
      matcher
    • notStartsWith

      public static AbstractMatcher notStartsWith(String matcher)
      Create a matcher filtering by a string that not starts with the string params
      Parameters:
      matcher - string matcher
      Returns:
      matcher
    • notStartsWith

      public static AbstractMatcher notStartsWith(Pattern pattern)
      Create a matcher filtering by a string that not starts with the pattern params
      Parameters:
      pattern - pattern
      Returns:
      matcher
    • notEndsWith

      public static AbstractMatcher notEndsWith(String matcher)
      Create a matcher filtering by a string that not ends with the string params
      Parameters:
      matcher - string matcher
      Returns:
      matcher
    • notEndsWith

      public static AbstractMatcher notEndsWith(Pattern pattern)
      Create a matcher filtering by a string that not ends with the pattern params
      Parameters:
      pattern - pattern
      Returns:
      matcher