| Enum Constant and Description |
|---|
BETWEEN
Between condition.
|
CONTAINS
Contains operation.
|
EQUALS
EQUALS condition
|
EXISTS
Exists condition
|
GREATER_THAN
Greater than condition
|
GREATER_THAN_OR_EQUALS
Greater than or Equals condition
|
HAS
HAS condition.
|
IN
IN condition.
|
LOWER_THAN
Lower than condition
|
LOWER_THAN_OR_EQUALS
Lower than or Equals condition
|
NOT_EQUALS
Not equals condition
|
SIZE
Size operation
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CNT |
static java.lang.String |
EQ |
static java.lang.String |
NEGATIVE_MARKER |
static java.lang.String |
TIMESTAMP_SEPARATOR |
static java.lang.String |
VALUES_SEPARATOR |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addCondition(org.springframework.data.mongodb.core.query.Criteria criteria,
FilterCondition filter,
CriteriaHolder criteriaHolder) |
java.lang.Object[] |
castArray(CriteriaHolder criteriaHolder,
java.lang.String value,
com.epam.ta.reportportal.ws.model.ErrorType errorType)
Cast values for filters which have many values(filters with
conditions:btw, in, etc)
|
abstract java.lang.Object |
castValue(CriteriaHolder criteriaHolder,
java.lang.String values,
com.epam.ta.reportportal.ws.model.ErrorType errorType)
Cast filter values according condition.
|
static java.util.Optional<Condition> |
findByMarker(java.lang.String marker)
Finds condition by marker.
|
java.lang.String |
getMarker() |
static boolean |
isNegative(java.lang.String marker)
Check whether condition is negative
|
static java.lang.String |
makeNegative(boolean negative,
java.lang.String marker)
Makes filter marker negative
|
abstract void |
validate(CriteriaHolder criteriaHolder,
java.lang.String value,
boolean isNegative,
com.epam.ta.reportportal.ws.model.ErrorType errorType)
Validate condition value.
|
static Condition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Condition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Condition EQUALS
public static final Condition NOT_EQUALS
public static final Condition CONTAINS
public static final Condition SIZE
public static final Condition EXISTS
public static final Condition IN
public static final Condition HAS
public static final Condition GREATER_THAN
public static final Condition GREATER_THAN_OR_EQUALS
public static final Condition LOWER_THAN
public static final Condition LOWER_THAN_OR_EQUALS
public static final Condition BETWEEN
public static final java.lang.String EQ
public static final java.lang.String CNT
public static final java.lang.String VALUES_SEPARATOR
public static final java.lang.String TIMESTAMP_SEPARATOR
public static final java.lang.String NEGATIVE_MARKER
public static Condition[] values()
for (Condition c : Condition.values()) System.out.println(c);
public static Condition valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract void addCondition(org.springframework.data.mongodb.core.query.Criteria criteria,
FilterCondition filter,
CriteriaHolder criteriaHolder)
public abstract void validate(CriteriaHolder criteriaHolder, java.lang.String value, boolean isNegative, com.epam.ta.reportportal.ws.model.ErrorType errorType)
criteriaHolder - Criteria descriptionvalue - Value to be castedisNegative - Whether filter is negativepublic abstract java.lang.Object castValue(CriteriaHolder criteriaHolder, java.lang.String values, com.epam.ta.reportportal.ws.model.ErrorType errorType)
criteriaHolder - Criteria descriptionvalues - Value to be castedpublic java.lang.String getMarker()
public static java.util.Optional<Condition> findByMarker(java.lang.String marker)
marker - Marker to be checkedpublic static boolean isNegative(java.lang.String marker)
marker - Marker to checkpublic static java.lang.String makeNegative(boolean negative,
java.lang.String marker)
negative - Whether condition is negativemarker - Marker to checkpublic java.lang.Object[] castArray(CriteriaHolder criteriaHolder, java.lang.String value, com.epam.ta.reportportal.ws.model.ErrorType errorType)
criteriaHolder - Criteria descriptionvalue - Value to be casted