/** * Returns the json representation of the query */ @Override public JsonNode toJson() { return getFactory().objectNode().put("field", field.toString()). put("op", op.toString()). set("rvalue", rvalue.toJson()); } }
/** * Returns the json representation of the query */ @Override public JsonNode toJson() { return getFactory().objectNode().put("field", field.toString()). put("op", op.toString()). set("rvalue", rvalue.toJson()); } }
/** * Returns a json representation of the query */ @Override public JsonNode toJson() { ArrayNode arr = getFactory().arrayNode(); for (Value x : values) { arr.add(x.toJson()); } return getFactory().objectNode(). put("array", array.toString()). put("contains", op.toString()). set("values", arr); }
/** * Returns a json representation of the query */ @Override public JsonNode toJson() { ArrayNode arr = getFactory().arrayNode(); for (Value x : values) { arr.add(x.toJson()); } return getFactory().objectNode(). put("array", array.toString()). put("contains", op.toString()). set("values", arr); }
@Override public JsonNode toJson() { switch (type) { case _value: return value.toJson(); case _dereference: ObjectNode node = getFactory().objectNode(); node.put("$valueof", path.toString()); return node; default: return getFactory().nullNode(); } }
/** * Returns a json representation of this query */ @Override public JsonNode toJson() { ArrayNode arr = getFactory().arrayNode(); for (Value x : values) { arr.add(x.toJson()); } return getFactory().objectNode().put("field", getField().toString()). put("op", getOp().toString()). set("values", arr); }
@Override public JsonNode toJson() { switch (type) { case _value: return value.toJson(); case _dereference: ObjectNode node = getFactory().objectNode(); node.put("$valueof", path.toString()); return node; default: return getFactory().nullNode(); } }
/** * Returns a json representation of this query */ @Override public JsonNode toJson() { ArrayNode arr = getFactory().arrayNode(); for (Value x : values) { arr.add(x.toJson()); } return getFactory().objectNode().put("field", getField().toString()). put("op", getOp().toString()). set("values", arr); }