Package org.fluentlenium.core.conditions
Interface StringConditions
-
- All Superinterfaces:
Conditions<java.lang.String>
- All Known Implementing Classes:
StringConditionsImpl
,StringListConditionsImpl
public interface StringConditions extends Conditions<java.lang.String>
Conditions API from String.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
contains(java.lang.CharSequence charSequence)
Check that this contains the given sequence of characters.boolean
endsWith(java.lang.String suffix)
Check that this ends with the given string.boolean
equalTo(java.lang.String anotherString)
Check that this is equal to with the given string.boolean
equalToIgnoreCase(java.lang.String anotherString)
Check that this is equal to with the given string, ignoring case.boolean
matches(java.lang.String regex)
Check that this matches the given regular expression string.boolean
matches(java.util.regex.Pattern pattern)
Check that this matches the given regular expression pattern.StringConditions
not()
Negates this condition object.boolean
startsWith(java.lang.String prefix)
Check that this starts with the given string.-
Methods inherited from interface org.fluentlenium.core.conditions.Conditions
verify
-
-
-
-
Method Detail
-
not
StringConditions not()
Description copied from interface:Conditions
Negates this condition object.- Specified by:
not
in interfaceConditions<java.lang.String>
- Returns:
- a negated condition object
-
contains
boolean contains(java.lang.CharSequence charSequence)
Check that this contains the given sequence of characters.- Parameters:
charSequence
- sequence of characters- Returns:
- true if it contains the given sequence of characters, false otherwise
-
startsWith
boolean startsWith(java.lang.String prefix)
Check that this starts with the given string.- Parameters:
prefix
- string- Returns:
- true if it starts with the given string, false otherwise
-
endsWith
boolean endsWith(java.lang.String suffix)
Check that this ends with the given string.- Parameters:
suffix
- string- Returns:
- true if it ends with the given string, false otherwise
-
equalTo
boolean equalTo(java.lang.String anotherString)
Check that this is equal to with the given string.- Parameters:
anotherString
- another string- Returns:
- true if it is equal to the given string, false otherwise
-
equalToIgnoreCase
boolean equalToIgnoreCase(java.lang.String anotherString)
Check that this is equal to with the given string, ignoring case.- Parameters:
anotherString
- another string- Returns:
- true if it is equal to the given string, ignoring case, false otherwise
-
matches
boolean matches(java.lang.String regex)
Check that this matches the given regular expression string.- Parameters:
regex
- regular expression string- Returns:
- true if it matches the given regular expression string, false otherwise
-
matches
boolean matches(java.util.regex.Pattern pattern)
Check that this matches the given regular expression pattern.- Parameters:
pattern
- regular expression pattern- Returns:
- true if it matches the given regular expression pattern, false otherwise
-
-