Class AbstractMatcher
- java.lang.Object
-
- org.fluentlenium.core.filter.matcher.AbstractMatcher
-
- Direct Known Subclasses:
ContainsMatcher,ContainsWordMatcher,EndsWithMatcher,EqualMatcher,NotContainsMatcher,NotEndsWithMatcher,NotStartsWithMatcher,StartsWithMatcher
public abstract class AbstractMatcher extends java.lang.ObjectAbstract search matcher.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractMatcher(java.lang.String value)Creates a new abstract search matcher.protectedAbstractMatcher(java.util.regex.Pattern value)Creates a new abstract search matcher.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMatcherSymbol()Return the matcher symbolprotected abstract MatcherTypegetMatcherType()Return the matcher typeprotected java.util.regex.PatterngetPattern()return the patternjava.lang.StringgetValue()return the given valuebooleanisCssFilterSupported()Does this matcher supports CSS filtering.abstract booleanisSatisfiedBy(java.lang.String value)Check if the matcher is matched given the valuejava.lang.StringtoString()
-
-
-
Constructor Detail
-
AbstractMatcher
protected AbstractMatcher(java.lang.String value)
Creates a new abstract search matcher.- Parameters:
value- string predicate
-
AbstractMatcher
protected AbstractMatcher(java.util.regex.Pattern value)
Creates a new abstract search matcher.- Parameters:
value- regular expression predicate
-
-
Method Detail
-
getValue
public java.lang.String getValue()
return the given value- Returns:
- value of matcher
-
getMatcherSymbol
public java.lang.String getMatcherSymbol()
Return the matcher symbol- Returns:
- matcher symbol
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isCssFilterSupported
public final boolean isCssFilterSupported()
Does this matcher supports CSS filtering.- Returns:
- true if css filtering is supported, false otherwise
-
getPattern
protected java.util.regex.Pattern getPattern()
return the pattern- Returns:
- pattern
-
getMatcherType
protected abstract MatcherType getMatcherType()
Return the matcher type- Returns:
- matcher type
-
isSatisfiedBy
public abstract boolean isSatisfiedBy(java.lang.String value)
Check if the matcher is matched given the value- Parameters:
value- define the object of check name- Returns:
- boolean value for isSatisfiedBy
-
-