public class SimpleCriteria
extends java.util.HashMap
Matching logic depends on textMatchStyle parameter passed into methods.
For more complex logic when different operators should be used or several criteria should be combine by logic operator use AdvancedCriteria
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | TEXT_MATCH_STYLE_STARTS_WITH TextMatchStyle for check that actual value should starts with passed value string. |
static java.lang.String | TEXT_MATCH_STYLE_SUBSTRING TextMatchStyle for check that actual value contain passed value string. |
Constructor and Description |
---|
SimpleCriteria(java.util.Map map) Construct criteria using key-values pairs. |
Modifier and Type | Method and Description |
---|---|
boolean | valuesMatchCriteria(java.util.Map values, java.lang.String textMatchStyle) Check that values in map match current criteria using passed textMatchStyle. |
public static final java.lang.String TEXT_MATCH_STYLE_STARTS_WITH
public static final java.lang.String TEXT_MATCH_STYLE_SUBSTRING
public SimpleCriteria(java.util.Map map)
map
- - map of key-values pairs.public boolean valuesMatchCriteria(java.util.Map values, java.lang.String textMatchStyle)
values
- - values to check.textMatchStyle
- - textMatchStyle to use.