public class StringCondition extends DefaultCondition<java.lang.String>
It contains a DslField to get the value from the model, a StringFunctionMetadata to describe this node, and a
BiFunction to take the value from the model and return an optional value.
function, metadata| Constructor and Description |
|---|
StringCondition(DslField<java.lang.String> field) |
StringCondition(PredicateMetadata metadata,
java.util.function.BiFunction<DslModel,Context,java.util.Optional<java.lang.String>> value) |
| Modifier and Type | Method and Description |
|---|---|
StepCondition |
contains(java.lang.String value)
Returns a condition checking if the node value contains the given value.
|
StepCondition |
endsWith(java.lang.String value)
Returns a condition checking if the node value ends with the given value.
|
StepCondition |
matches(java.lang.String value)
Returns a condition checking if the node value matches the given value.
|
StepCondition |
startsWith(java.lang.String value)
Returns a condition checking if the node value starts with the given value.
|
allMatch, allMatch, allMatch, anyMatch, anyMatch, eq, eq, eq, isNotNull, isNull, map, mapToInt, mapToString, mapUsing, noneMatch, noneMatch, noneMatch, notEq, notEq, notEqgetFunction, getMetadata, readable, value, valueModelpublic StringCondition(DslField<java.lang.String> field)
public StringCondition(PredicateMetadata metadata, java.util.function.BiFunction<DslModel,Context,java.util.Optional<java.lang.String>> value)
public final StepCondition contains(java.lang.String value)
value - the valuepublic final StepCondition matches(java.lang.String value)
value - the valuepublic final StepCondition startsWith(java.lang.String value)
value - the valuepublic final StepCondition endsWith(java.lang.String value)
value - the value