Interface ISingleConditionBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a new single condition with the current configuration.default SingleConditionSets up the condition so that the given left hand side must contain the given right hand side.default SingleConditiondoesNotEndWith(String lhs, String rhs) Sets up the condition so that the given left hand side must not end with the given right hand side.default SingleConditiondoesNotMatchRegExp(String lhs, String rhs) Sets up the condition so that the given left hand side must not match the given right hand side as a regular expression.default SingleConditiondoesNotStartWith(String lhs, String rhs) Sets up the condition so that the given left hand side must not start with the given right hand side.default SingleConditionSets up the condition so that the given left hand side must end with the given right hand side.default SingleConditionSets up the condition so that the given left hand side must equal the given right hand side.default SingleConditiongreaterThan(String lhs, String rhs) Sets up the condition so that the given left hand side must be greater than the given right hand side.default SingleConditiongreaterThanOrEqual(String lhs, String rhs) Sets up the condition so that the given left hand side must be greater than or equal to the given right hand side.default SingleConditionSets up the condition so that the given value must be empty.default SingleConditionisNotEmpty(String value) Sets up the condition so that the given value must not be empty.default SingleConditionSets up the condition so that the given left hand side must be less than the given right hand side.default SingleConditionlessThanOrEqual(String lhs, String rhs) Sets up the condition so that the given left hand side must be less than or equal to the given right hand side.Sets the left-hand side of the condition.matchCondition(EMatchCondition matchCondition) Sets the match condition to use for the comparison, that compares the left-hand side and right-hand side.default SingleConditionmatchesRegExp(String lhs, String rhs) Sets up the condition so that the given left hand side must match the given right hand side as a regular expression.default SingleConditionnotEqualTo(String lhs, String rhs) Sets up the condition so that the given left hand side must not equal the given right hand side.Sets the right-hand side of the condition.default SingleConditionstartsWith(String lhs, String rhs) Sets up the condition so that the given left hand side must start with the given right hand side.variableName(String variableName) Sets the variable name used when conditions are combined with a custom boolean expression.
-
Method Details
-
build
SingleCondition build()Creates a new single condition with the current configuration. Changes to the builder after this method has been called will not affect the created condition.- Returns:
- The created single condition.
-
contains
Sets up the condition so that the given left hand side must contain the given right hand side.- Parameters:
lhs- The left-hand side.rhs- The right-hand side.- Returns:
- This builder for chaining method calls.
-
doesNotEndWith
Sets up the condition so that the given left hand side must not end with the given right hand side.- Parameters:
lhs- The left-hand side.rhs- The right-hand side.- Returns:
- This builder for chaining method calls.
-
doesNotMatchRegExp
Sets up the condition so that the given left hand side must not match the given right hand side as a regular expression.- Parameters:
lhs- The left-hand side.rhs- The right-hand side.- Returns:
- This builder for chaining method calls.
-
doesNotStartWith
Sets up the condition so that the given left hand side must not start with the given right hand side.- Parameters:
lhs- The left-hand side.rhs- The right-hand side.- Returns:
- This builder for chaining method calls.
-
endsWith
Sets up the condition so that the given left hand side must end with the given right hand side.- Parameters:
lhs- The left-hand side.rhs- The right-hand side.- Returns:
- This builder for chaining method calls.
-
equalTo
Sets up the condition so that the given left hand side must equal the given right hand side.- Parameters:
lhs- The left-hand side.rhs- The right-hand side.- Returns:
- This builder for chaining method calls.
-
greaterThan
Sets up the condition so that the given left hand side must be greater than the given right hand side.- Parameters:
lhs- The left-hand side.rhs- The right-hand side.- Returns:
- This builder for chaining method calls.
-
greaterThanOrEqual
Sets up the condition so that the given left hand side must be greater than or equal to the given right hand side.- Parameters:
lhs- The left-hand side.rhs- The right-hand side.- Returns:
- This builder for chaining method calls.
-
isEmpty
Sets up the condition so that the given value must be empty.- Parameters:
value- The value to check.- Returns:
- This builder for chaining method calls.
-
isNotEmpty
Sets up the condition so that the given value must not be empty.- Parameters:
value- The value to check.- Returns:
- This builder for chaining method calls.
-
lessThan
Sets up the condition so that the given left hand side must be less than the given right hand side.- Parameters:
lhs- The left-hand side.rhs- The right-hand side.- Returns:
- This builder for chaining method calls.
-
lessThanOrEqual
Sets up the condition so that the given left hand side must be less than or equal to the given right hand side.- Parameters:
lhs- The left-hand side.rhs- The right-hand side.- Returns:
- This builder for chaining method calls.
-
lhs
Sets the left-hand side of the condition.- Parameters:
lhs- The left-hand side.- Returns:
- This builder for chaining method calls.
-
matchCondition
Sets the match condition to use for the comparison, that compares the left-hand side and right-hand side.- Parameters:
matchCondition- The match condition.- Returns:
- This builder for chaining method calls.
-
matchesRegExp
Sets up the condition so that the given left hand side must match the given right hand side as a regular expression.- Parameters:
lhs- The left-hand side.rhs- The right-hand side.- Returns:
- This builder for chaining method calls.
-
notEqualTo
Sets up the condition so that the given left hand side must not equal the given right hand side.- Parameters:
lhs- The left-hand side.rhs- The right-hand side.- Returns:
- This builder for chaining method calls.
-
rhs
Sets the right-hand side of the condition.- Parameters:
rhs- The right-hand side.- Returns:
- This builder for chaining method calls.
-
startsWith
Sets up the condition so that the given left hand side must start with the given right hand side.- Parameters:
lhs- The left-hand side.rhs- The right-hand side.- Returns:
- This builder for chaining method calls.
-
variableName
Sets the variable name used when conditions are combined with a custom boolean expression. When not set, a default name is generated:c1,c2,c3, ...- Parameters:
variableName- The variable name.- Returns:
- This builder for chaining method calls.
-