Package io.fluentlenium.core.conditions
Class StringConditionsImpl
java.lang.Object
io.fluentlenium.core.conditions.AbstractObjectConditions<String>
io.fluentlenium.core.conditions.StringConditionsImpl
- All Implemented Interfaces:
Conditions<String>
,ConditionsObject<String>
,StringConditions
public class StringConditionsImpl
extends AbstractObjectConditions<String>
implements StringConditions
Conditions for string
-
Field Summary
Fields inherited from class io.fluentlenium.core.conditions.AbstractObjectConditions
negation, object
-
Constructor Summary
ConstructorDescriptionStringConditionsImpl
(String string) Creates a new conditions object on string.StringConditionsImpl
(String string, boolean negation) Creates a new conditions object on string. -
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(CharSequence charSequence) Check that this contains the given sequence of characters.boolean
Check that this ends with the given string.boolean
Check that this is equal to with the given string.boolean
equalToIgnoreCase
(String anotherString) Check that this is equal to with the given string, ignoring case.boolean
Check that this matches the given regular expression string.boolean
Check that this matches the given regular expression pattern.protected StringConditionsImpl
newInstance
(boolean negationValue) Creates a new instance of this condition.not()
Negates this condition object.boolean
startsWith
(String prefix) Check that this starts with the given string.Methods inherited from class io.fluentlenium.core.conditions.AbstractObjectConditions
getActualObject, verify
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.fluentlenium.core.conditions.Conditions
verify
-
Constructor Details
-
StringConditionsImpl
Creates a new conditions object on string.- Parameters:
string
- underlying string
-
StringConditionsImpl
Creates a new conditions object on string.- Parameters:
string
- underlying stringnegation
- negation value
-
-
Method Details
-
newInstance
Description copied from class:AbstractObjectConditions
Creates a new instance of this condition.- Specified by:
newInstance
in classAbstractObjectConditions<String>
- Parameters:
negationValue
- negation value- Returns:
- new instance of this condition
-
not
Description copied from interface:Conditions
Negates this condition object.- Specified by:
not
in interfaceConditions<String>
- Specified by:
not
in interfaceStringConditions
- Overrides:
not
in classAbstractObjectConditions<String>
- Returns:
- a negated condition object
-
contains
Description copied from interface:StringConditions
Check that this contains the given sequence of characters.- Specified by:
contains
in interfaceStringConditions
- Parameters:
charSequence
- sequence of characters- Returns:
- true if it contains the given sequence of characters, false otherwise
-
startsWith
Description copied from interface:StringConditions
Check that this starts with the given string.- Specified by:
startsWith
in interfaceStringConditions
- Parameters:
prefix
- string- Returns:
- true if it starts with the given string, false otherwise
-
endsWith
Description copied from interface:StringConditions
Check that this ends with the given string.- Specified by:
endsWith
in interfaceStringConditions
- Parameters:
suffix
- string- Returns:
- true if it ends with the given string, false otherwise
-
equalTo
Description copied from interface:StringConditions
Check that this is equal to with the given string.- Specified by:
equalTo
in interfaceStringConditions
- Parameters:
anotherString
- another string- Returns:
- true if it is equal to the given string, false otherwise
-
equalToIgnoreCase
Description copied from interface:StringConditions
Check that this is equal to with the given string, ignoring case.- Specified by:
equalToIgnoreCase
in interfaceStringConditions
- Parameters:
anotherString
- another string- Returns:
- true if it is equal to the given string, ignoring case, false otherwise
-
matches
Description copied from interface:StringConditions
Check that this matches the given regular expression string.- Specified by:
matches
in interfaceStringConditions
- Parameters:
regex
- regular expression string- Returns:
- true if it matches the given regular expression string, false otherwise
-
matches
Description copied from interface:StringConditions
Check that this matches the given regular expression pattern.- Specified by:
matches
in interfaceStringConditions
- Parameters:
pattern
- regular expression pattern- Returns:
- true if it matches the given regular expression pattern, false otherwise
-