org.fluentlenium.core.filter.matcher
Class Matcher

java.lang.Object
  extended by org.fluentlenium.core.filter.matcher.Matcher
Direct Known Subclasses:
ContainsMatcher, EndsWithMatcher, EqualMatcher, NotContainsMatcher, NotEndsWithMatcher, NotStartsWithMatcher, StartsWithMatcher

public abstract class Matcher
extends Object


Constructor Summary
protected Matcher(Pattern value)
           
protected Matcher(String value)
           
 
Method Summary
 String getMatcherSymbol()
          Return the matcher symbol
protected abstract  MatcherType getMatcherType()
          Return the matcher type
protected  Pattern getPattern()
          return the pattern
 String getValue()
          return the given value
 boolean isPreFilter()
           
abstract  boolean isSatisfiedBy(String value)
          Check if the matcher is matched given the value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Matcher

protected Matcher(String value)

Matcher

protected Matcher(Pattern value)
Method Detail

getValue

public String getValue()
return the given value

Returns:

getMatcherSymbol

public String getMatcherSymbol()
Return the matcher symbol

Returns:

isPreFilter

public final boolean isPreFilter()

getPattern

protected Pattern getPattern()
return the pattern

Returns:

getMatcherType

protected abstract MatcherType getMatcherType()
Return the matcher type

Returns:

isSatisfiedBy

public abstract boolean isSatisfiedBy(String value)
Check if the matcher is matched given the value

Parameters:
value -
Returns:


Copyright © 2012 AConsulting. All Rights Reserved.