public class JSONPredicateRepresentation extends Object
parameterPath
and value
.
It can represent a branch predicate when using a conjunction operator (AND, OR). In this form it requires
childPredicates
Modifier and Type | Class and Description |
---|---|
static class |
JSONPredicateRepresentation.JSONPredicateRepresentationBuilder |
Constructor and Description |
---|
JSONPredicateRepresentation() |
JSONPredicateRepresentation(String operator,
String parameterPath,
List<JSONPredicateRepresentation> childPredicates) |
JSONPredicateRepresentation(String operator,
String parameterPath,
String value) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<JSONPredicateRepresentation> |
getChildPredicates()
child predicates in case of composite predicate
|
String |
getOperator() |
String |
getParameterPath()
path to parameter inside json
|
String |
getValue()
value used in comparison, with operator specified
|
int |
hashCode() |
static JSONPredicateRepresentation.JSONPredicateRepresentationBuilder |
jsonBranchPredicateRepresentation() |
static JSONPredicateRepresentation.JSONPredicateRepresentationBuilder |
jsonLeafPredicateRepresentation() |
void |
setChildPredicates(List<JSONPredicateRepresentation> childPredicates)
child predicates in case of composite predicate
|
void |
setOperator(String operator) |
void |
setParameterPath(String parameterPath)
path to parameter inside json
|
void |
setValue(String value)
value used in comparison, with operator specified
|
String |
toString() |
public JSONPredicateRepresentation(String operator, String parameterPath, String value)
public JSONPredicateRepresentation(String operator, String parameterPath, List<JSONPredicateRepresentation> childPredicates)
public JSONPredicateRepresentation()
public static JSONPredicateRepresentation.JSONPredicateRepresentationBuilder jsonLeafPredicateRepresentation()
public static JSONPredicateRepresentation.JSONPredicateRepresentationBuilder jsonBranchPredicateRepresentation()
public void setOperator(String operator)
public void setParameterPath(String parameterPath)
public void setValue(String value)
protected boolean canEqual(Object other)
@JSONProperty(ignoreIfNull=true) public String getOperator()
@JSONProperty(ignoreIfNull=true) public String getParameterPath()
@JSONProperty(ignoreIfNull=true) public String getValue()
@JSONProperty(ignoreIfNull=true) @JSONTypeHint(value=JSONPredicateRepresentation.class) public List<JSONPredicateRepresentation> getChildPredicates()
@JSONProperty(ignoreIfNull=true) @JSONTypeHint(value=JSONPredicateRepresentation.class) public void setChildPredicates(List<JSONPredicateRepresentation> childPredicates)
Copyright © 2020 (C) Cumulocity GmbH. All rights reserved.