org.fluentlenium.core.filter
Class MatcherConstructor

java.lang.Object
  extended by org.fluentlenium.core.filter.MatcherConstructor

public final class MatcherConstructor
extends Object


Method Summary
static Matcher contains(Pattern pattern)
          Create a matcher for a containing pattern
static Matcher contains(String matcher)
          Create a matcher for a containing string
static Matcher endsWith(Pattern pattern)
          Create a matcher filtering by a string that ends with the pattern
static Matcher endsWith(String matcher)
          Create a matcher filtering by a string that ends with the matcher
static Matcher equal(String matcher)
          Create a matcher to equal the string matcher
static Matcher notContains(Pattern pattern)
          Create a matcher for not containing the pattern
static Matcher notContains(String matcher)
          Create a matcher for not containing a string
static Matcher notEndsWith(Pattern pattern)
          Create a matcher filtering by a string that not ends with the pattern params
static Matcher notEndsWith(String matcher)
          Create a matcher filtering by a string that not ends with the string params
static Matcher notStartsWith(Pattern pattern)
          Create a matcher filtering by a string that not starts with the pattern params
static Matcher notStartsWith(String matcher)
          Create a matcher filtering by a string that not starts with the string params
static Pattern regex(String pattern)
          Create a Pattern given a regex.
static Matcher startsWith(Pattern pattern)
          Create a matcher filtering by a string that start with the matcher
static Matcher startsWith(String matcher)
          Create a matcher filtering by a string that start with the matcher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

contains

public static Matcher contains(String matcher)
Create a matcher for a containing string

Parameters:
matcher -
Returns:

contains

public static Matcher contains(Pattern pattern)
Create a matcher for a containing pattern

Parameters:
pattern -
Returns:

notContains

public static Matcher notContains(String matcher)
Create a matcher for not containing a string

Parameters:
matcher -
Returns:

notContains

public static Matcher notContains(Pattern pattern)
Create a matcher for not containing the pattern

Parameters:
pattern -
Returns:

equal

public static Matcher equal(String matcher)
Create a matcher to equal the string matcher

Parameters:
matcher -
Returns:

regex

public static Pattern regex(String pattern)
Create a Pattern given a regex. The regex is compile.

Parameters:
pattern -
Returns:

startsWith

public static Matcher startsWith(String matcher)
Create a matcher filtering by a string that start with the matcher

Parameters:
matcher -
Returns:

startsWith

public static Matcher startsWith(Pattern pattern)
Create a matcher filtering by a string that start with the matcher

Parameters:
pattern -
Returns:

endsWith

public static Matcher endsWith(String matcher)
Create a matcher filtering by a string that ends with the matcher

Parameters:
matcher -
Returns:

endsWith

public static Matcher endsWith(Pattern pattern)
Create a matcher filtering by a string that ends with the pattern

Parameters:
pattern -
Returns:

notStartsWith

public static Matcher notStartsWith(String matcher)
Create a matcher filtering by a string that not starts with the string params

Parameters:
matcher -
Returns:

notStartsWith

public static Matcher notStartsWith(Pattern pattern)
Create a matcher filtering by a string that not starts with the pattern params

Parameters:
pattern -
Returns:

notEndsWith

public static Matcher notEndsWith(String matcher)
Create a matcher filtering by a string that not ends with the string params

Parameters:
matcher -
Returns:

notEndsWith

public static Matcher notEndsWith(Pattern pattern)
Create a matcher filtering by a string that not ends with the pattern params

Parameters:
pattern -
Returns:


Copyright © 2012 AConsulting. All Rights Reserved.