Package org.fluentlenium.core.filter
Class MatcherConstructor
- java.lang.Object
-
- org.fluentlenium.core.filter.MatcherConstructor
-
public final class MatcherConstructor extends java.lang.ObjectMatcher constructors.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractMatchercontains(java.lang.String matcher)Create a matcher for a containing stringstatic AbstractMatchercontains(java.util.regex.Pattern pattern)Create a matcher for a containing patternstatic AbstractMatcherendsWith(java.lang.String matcher)Create a matcher filtering by a string that ends with the matcherstatic AbstractMatcherendsWith(java.util.regex.Pattern pattern)Create a matcher filtering by a string that ends with the patternstatic AbstractMatcherequal(java.lang.String matcher)Create a matcher to equal the string matcherstatic AbstractMatchernotContains(java.lang.String matcher)Create a matcher for not containing a stringstatic AbstractMatchernotContains(java.util.regex.Pattern pattern)Create a matcher for not containing the patternstatic AbstractMatchernotEndsWith(java.lang.String matcher)Create a matcher filtering by a string that not ends with the string paramsstatic AbstractMatchernotEndsWith(java.util.regex.Pattern pattern)Create a matcher filtering by a string that not ends with the pattern paramsstatic AbstractMatchernotStartsWith(java.lang.String matcher)Create a matcher filtering by a string that not starts with the string paramsstatic AbstractMatchernotStartsWith(java.util.regex.Pattern pattern)Create a matcher filtering by a string that not starts with the pattern paramsstatic java.util.regex.Patternregex(java.lang.String pattern)Create a Pattern given a regex.static AbstractMatcherstartsWith(java.lang.String matcher)Create a matcher filtering by a string that start with the matcherstatic AbstractMatcherstartsWith(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
-
-