Package io.fluentlenium.core.conditions
Class StringListConditionsImpl
java.lang.Object
io.fluentlenium.core.conditions.BaseObjectListConditions<String,StringConditions>
io.fluentlenium.core.conditions.StringListConditionsImpl
- All Implemented Interfaces:
Conditions<String>,ConditionsObject<List<String>>,StringConditions
public class StringListConditionsImpl
extends BaseObjectListConditions<String,StringConditions>
implements StringConditions
Conditions for list of string.
-
Field Summary
Fields inherited from class io.fluentlenium.core.conditions.BaseObjectListConditions
conditions, conditionsGetter, objectGetter -
Constructor Summary
ConstructorsConstructorDescriptionStringListConditionsImpl(Conditions<FluentWebElement> conditions, Function<FluentWebElement, String> objectGetter, Function<FluentWebElement, StringConditions> conditionsGetter) Creates a new list of string conditions -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(CharSequence charSequence) Check that this contains the given sequence of characters.booleanCheck that this ends with the given string.booleanCheck that this is equal to with the given string.booleanequalToIgnoreCase(String anotherString) Check that this is equal to with the given string, ignoring case.booleanCheck that this matches the given regular expression string.booleanCheck that this matches the given regular expression pattern.not()Negates this condition object.booleanstartsWith(String prefix) Check that this starts with the given string.Methods inherited from class io.fluentlenium.core.conditions.BaseObjectListConditions
getActualObject, verifyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fluentlenium.core.conditions.Conditions
verify
-
Constructor Details
-
StringListConditionsImpl
public StringListConditionsImpl(Conditions<FluentWebElement> conditions, Function<FluentWebElement, String> objectGetter, Function<FluentWebElement, StringConditions> conditionsGetter) Creates a new list of string conditions- Parameters:
conditions- string conditionsobjectGetter- getter of the underlying stringconditionsGetter- getter of the underlying string conditions
-
-
Method Details
-
not
Description copied from interface:ConditionsNegates this condition object.- Specified by:
notin interfaceConditions<String>- Specified by:
notin interfaceStringConditions- Returns:
- a negated condition object
-
contains
Description copied from interface:StringConditionsCheck that this contains the given sequence of characters.- Specified by:
containsin interfaceStringConditions- Parameters:
charSequence- sequence of characters- Returns:
- true if it contains the given sequence of characters, false otherwise
-
startsWith
Description copied from interface:StringConditionsCheck that this starts with the given string.- Specified by:
startsWithin interfaceStringConditions- Parameters:
prefix- string- Returns:
- true if it starts with the given string, false otherwise
-
endsWith
Description copied from interface:StringConditionsCheck that this ends with the given string.- Specified by:
endsWithin interfaceStringConditions- Parameters:
suffix- string- Returns:
- true if it ends with the given string, false otherwise
-
equalTo
Description copied from interface:StringConditionsCheck that this is equal to with the given string.- Specified by:
equalToin interfaceStringConditions- Parameters:
anotherString- another string- Returns:
- true if it is equal to the given string, false otherwise
-
equalToIgnoreCase
Description copied from interface:StringConditionsCheck that this is equal to with the given string, ignoring case.- Specified by:
equalToIgnoreCasein interfaceStringConditions- Parameters:
anotherString- another string- Returns:
- true if it is equal to the given string, ignoring case, false otherwise
-
matches
Description copied from interface:StringConditionsCheck that this matches the given regular expression string.- Specified by:
matchesin interfaceStringConditions- Parameters:
regex- regular expression string- Returns:
- true if it matches the given regular expression string, false otherwise
-
matches
Description copied from interface:StringConditionsCheck that this matches the given regular expression pattern.- Specified by:
matchesin interfaceStringConditions- Parameters:
pattern- regular expression pattern- Returns:
- true if it matches the given regular expression pattern, false otherwise
-