Package de.telekom.jsonfilter.operator
Interface Operator
- All Known Implementing Classes:
AndOperator,ComparisonOperator,ContainsOperator,EqualsOperator,GreaterEqualOperator,GreaterThanOperator,InOperator,LessEqualOperator,LessThanOperator,LogicOperator,NotContainsOperator,NotEqualsOperator,OrOperator,RegexOperator
public interface Operator
-
Method Summary
Modifier and TypeMethodDescriptionEvaluates a given JSON-payload against the operator(-chain).validate()Validates the operator(-chain).
-
Method Details
-
getOperator
OperatorEnum getOperator() -
validate
ValidationResult validate()Validates the operator(-chain).- Returns:
- A ValidationResult that describes the result of the validation.
-
evaluate
Evaluates a given JSON-payload against the operator(-chain).- Parameters:
json- The JSON-payload that should be evaluated.- Returns:
- A EvaluationResult that describes the result of the evaluation.
-