Class ComparisonOperator<T>
java.lang.Object
de.telekom.jsonfilter.operator.comparison.ComparisonOperator<T>
- All Implemented Interfaces:
Operator
- Direct Known Subclasses:
ContainsOperator,EqualsOperator,GreaterEqualOperator,GreaterThanOperator,InOperator,LessEqualOperator,LessThanOperator,NotContainsOperator,NotEqualsOperator,RegexOperator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEvaluates a given JSON-payload against the operator(-chain).protected Comparable<T> getActualValue(String json, String jsonPath) protected List<Comparable<T>> getActualValues(String json, String jsonPath) static <T> Operatorinstantiate(ComparisonOperatorEnum operator, String jsonPath, T expectedValue) validate()Validates the operator(-chain).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.telekom.jsonfilter.operator.Operator
getOperator
-
Constructor Details
-
ComparisonOperator
-
-
Method Details
-
instantiate
public static <T> Operator instantiate(ComparisonOperatorEnum operator, String jsonPath, T expectedValue) -
evaluate
Description copied from interface:OperatorEvaluates a given JSON-payload against the operator(-chain). -
getActualValue
- Throws:
NoSingleValueException
-
getActualValues
-
validate
Description copied from interface:OperatorValidates the operator(-chain).
-