Package org.fluentlenium.core.filter
Class MatcherConstructor
- java.lang.Object
-
- org.fluentlenium.core.filter.MatcherConstructor
-
public final class MatcherConstructor extends java.lang.Object
Matcher constructors.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractMatcher
contains(java.lang.String matcher)
Create a matcher for a containing stringstatic AbstractMatcher
contains(java.util.regex.Pattern pattern)
Create a matcher for a containing patternstatic AbstractMatcher
endsWith(java.lang.String matcher)
Create a matcher filtering by a string that ends with the matcherstatic AbstractMatcher
endsWith(java.util.regex.Pattern pattern)
Create a matcher filtering by a string that ends with the patternstatic AbstractMatcher
equal(java.lang.String matcher)
Create a matcher to equal the string matcherstatic AbstractMatcher
notContains(java.lang.String matcher)
Create a matcher for not containing a stringstatic AbstractMatcher
notContains(java.util.regex.Pattern pattern)
Create a matcher for not containing the patternstatic AbstractMatcher
notEndsWith(java.lang.String matcher)
Create a matcher filtering by a string that not ends with the string paramsstatic AbstractMatcher
notEndsWith(java.util.regex.Pattern pattern)
Create a matcher filtering by a string that not ends with the pattern paramsstatic AbstractMatcher
notStartsWith(java.lang.String matcher)
Create a matcher filtering by a string that not starts with the string paramsstatic AbstractMatcher
notStartsWith(java.util.regex.Pattern pattern)
Create a matcher filtering by a string that not starts with the pattern paramsstatic java.util.regex.Pattern
regex(java.lang.String pattern)
Create a Pattern given a regex.static AbstractMatcher
startsWith(java.lang.String matcher)
Create a matcher filtering by a string that start with the matcherstatic AbstractMatcher
startsWith(java.util.regex.Pattern pattern)
Create a matcher filtering by a string that start with the matcher
-
-
-
Method Detail
-
contains
public static AbstractMatcher contains(java.lang.String matcher)
Create a matcher for a containing string- Parameters:
matcher
- string matcher- Returns:
- matcher object
-
contains
public static AbstractMatcher contains(java.util.regex.Pattern pattern)
Create a matcher for a containing pattern- Parameters:
pattern
- pattern object- Returns:
- matcher object
-
notContains
public static AbstractMatcher notContains(java.lang.String matcher)
Create a matcher for not containing a string- Parameters:
matcher
- string matcher- Returns:
- matcher object
-
notContains
public static AbstractMatcher notContains(java.util.regex.Pattern pattern)
Create a matcher for not containing the pattern- Parameters:
pattern
- string pattern- Returns:
- matcher object
-
equal
public static AbstractMatcher equal(java.lang.String matcher)
Create a matcher to equal the string matcher- Parameters:
matcher
- string matcher- Returns:
- matcher object
-
regex
public static java.util.regex.Pattern regex(java.lang.String pattern)
Create a Pattern given a regex. The regex is compile.- Parameters:
pattern
- string pattern- Returns:
- pattern
-
startsWith
public static AbstractMatcher startsWith(java.lang.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(java.util.regex.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(java.lang.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(java.util.regex.Pattern pattern)
Create a matcher filtering by a string that ends with the pattern- Parameters:
pattern
- pattern- Returns:
- matcher
-
notStartsWith
public static AbstractMatcher notStartsWith(java.lang.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(java.util.regex.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(java.lang.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(java.util.regex.Pattern pattern)
Create a matcher filtering by a string that not ends with the pattern params- Parameters:
pattern
- pattern- Returns:
- matcher
-
-