@Override public JsonObject remove() { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_OBJECT_MISSING(key)); } return Json.createObjectBuilder(object).remove(key).build(); }
@Override public JsonValue get() { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_OBJECT_MISSING(key)); } return object.get(key); }
@Override public JsonObject remove() { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_OBJECT_MISSING(key)); } return Json.createObjectBuilder(object).remove(key).build(); }
/** * Returns a {@code NodeReference} for a name/value pair in a * JSON object. * * @param object the referenced JSON object * @param name the name of the name/pair * @return the {@code NodeReference} */ public static NodeReference of(JsonObject object, String name) { return new ObjectReference(object, name); }
@Override public JsonObject remove() { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_OBJECT_MISSING(key)); } return Json.createObjectBuilder(object).remove(key).build(); }
/** * Returns a {@code NodeReference} for a name/value pair in a * JSON object. * * @param object the referenced JSON object * @param name the name of the name/pair * @return the {@code NodeReference} */ public static NodeReference of(JsonObject object, String name) { return new ObjectReference(object, name); }
@Override public JsonValue get() { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_OBJECT_MISSING(key)); } return object.get(key); }
@Override public JsonObject remove() { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_OBJECT_MISSING(key)); } return Json.createObjectBuilder(object).remove(key).build(); }
/** * Returns a {@code NodeReference} for a name/value pair in a * JSON object. * * @param object the referenced JSON object * @param name the name of the name/pair * @return the {@code NodeReference} */ public static NodeReference of(JsonObject object, String name) { return new ObjectReference(object, name); }
@Override public JsonValue get() { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_OBJECT_MISSING(key)); } return object.get(key); }
@Override public JsonValue get() { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_OBJECT_MISSING(key)); } return object.get(key); }
/** * Returns a {@code NodeReference} for a name/value pair in a * JSON object. * * @param object the referenced JSON object * @param name the name of the name/pair * @return the {@code NodeReference} */ public static NodeReference of(JsonObject object, String name) { return new ObjectReference(object, name); }
@Override public JsonObject remove() { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_OBJECT_MISSING(key)); } return Json.createObjectBuilder(object).remove(key).build(); }
/** * Returns a {@code NodeReference} for a name/value pair in a * JSON object. * * @param object the referenced JSON object * @param name the name of the name/pair * @return the {@code NodeReference} */ public static NodeReference of(JsonObject object, String name) { return new ObjectReference(object, name); }
@Override public JsonValue get() { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_OBJECT_MISSING(key)); } return object.get(key); }