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 booleancontains(java.lang.CharSequence charSequence)Check that this contains the given sequence of characters.booleanendsWith(java.lang.String suffix)Check that this ends with the given string.booleanequalTo(java.lang.String anotherString)Check that this is equal to with the given string.booleanequalToIgnoreCase(java.lang.String anotherString)Check that this is equal to with the given string, ignoring case.booleanmatches(java.lang.String regex)Check that this matches the given regular expression string.booleanmatches(java.util.regex.Pattern pattern)Check that this matches the given regular expression pattern.StringConditionsnot()Negates this condition object.booleanstartsWith(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:ConditionsNegates this condition object.- Specified by:
notin 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
-
-