本文整理了Java中javax.json.Json.createPointer()
方法的一些代码示例,展示了Json.createPointer()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Json.createPointer()
方法的具体详情如下:
包路径:javax.json.Json
类名称:Json
方法名:createPointer
[英]Create a JsonPointer for the given path
[中]为给定路径创建JsonPointer
代码示例来源:origin: wildfly/wildfly
/**
* Get the value referenced by the provided JSON Pointer in the JsonStructure.
*
* @param jsonPointer the JSON Pointer
* @return the {@code JsonValue} at the referenced location
* @throws JsonException if the JSON Pointer is malformed, or if it references
* a non-existing member or value.
*
* @since 1.1
*/
default public JsonValue getValue(String jsonPointer) {
return Json.createPointer(jsonPointer).getValue(this);
}
}
代码示例来源:origin: wildfly/wildfly
private JsonPointer getPointer(JsonObject operation, String member) {
JsonString pointerString = operation.getJsonString(member);
if (pointerString == null) {
missingMember(operation.getString("op"), member);
}
return Json.createPointer(pointerString.getString());
}
代码示例来源:origin: org.glassfish/javax.json
private JsonPointer getPointer(JsonObject operation, String member) {
JsonString pointerString = operation.getJsonString(member);
if (pointerString == null) {
missingMember(operation.getString("op"), member);
}
return Json.createPointer(pointerString.getString());
}
代码示例来源:origin: org.talend.sdk.component/component-runtime-manager
private JsonPointer toPointer(final String absoluteTargetPath) {
return Json.createPointer('/' + absoluteTargetPath.replace('.', '/'));
}
代码示例来源:origin: javax/javaee-web-api
/**
* Get the value referenced by the provided JSON Pointer in the JsonStructure.
*
* @param jsonPointer the JSON Pointer
* @return the {@code JsonValue} at the referenced location
* @throws JsonException if the JSON Pointer is malformed, or if it references
* a non-existing member or value.
*
* @since 1.1
*/
default public JsonValue getValue(String jsonPointer) {
return Json.createPointer(jsonPointer).getValue(this);
}
}
代码示例来源:origin: javax.json/javax.json-api
/**
* Get the value referenced by the provided JSON Pointer in the JsonStructure.
*
* @param jsonPointer the JSON Pointer
* @return the {@code JsonValue} at the referenced location
* @throws JsonException if the JSON Pointer is malformed, or if it references
* a non-existing member or value.
*
* @since 1.1
*/
default public JsonValue getValue(String jsonPointer) {
return Json.createPointer(jsonPointer).getValue(this);
}
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
/**
* Get the value referenced by the provided JSON Pointer in the JsonStructure.
*
* @param jsonPointer the JSON Pointer
* @return the {@code JsonValue} at the referenced location
* @throws JsonException if the JSON Pointer is malformed, or if it references
* a non-existing member or value.
*
* @since 1.1
*/
default public JsonValue getValue(String jsonPointer) {
return Json.createPointer(jsonPointer).getValue(this);
}
}
代码示例来源:origin: eclipse-ee4j/jsonp
/**
* Get the value referenced by the provided JSON Pointer in the JsonStructure.
*
* @param jsonPointer the JSON Pointer
* @return the {@code JsonValue} at the referenced location
* @throws JsonException if the JSON Pointer is malformed, or if it references
* a non-existing member or value.
*
* @since 1.1
*/
default public JsonValue getValue(String jsonPointer) {
return Json.createPointer(jsonPointer).getValue(this);
}
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Get the value referenced by the provided JSON Pointer in the JsonStructure.
*
* @param jsonPointer the JSON Pointer
* @return the {@code JsonValue} at the referenced location
* @throws JsonException if the JSON Pointer is malformed, or if it references
* a non-existing member or value.
*
* @since 1.1
*/
default public JsonValue getValue(String jsonPointer) {
return Json.createPointer(jsonPointer).getValue(this);
}
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* Get the value referenced by the provided JSON Pointer in the JsonStructure.
*
* @param jsonPointer the JSON Pointer
* @return the {@code JsonValue} at the referenced location
* @throws JsonException if the JSON Pointer is malformed, or if it references
* a non-existing member or value.
*
* @since 1.1
*/
default public JsonValue getValue(String jsonPointer) {
return Json.createPointer(jsonPointer).getValue(this);
}
}
代码示例来源:origin: jakarta.json/jakarta.json-api
/**
* Get the value referenced by the provided JSON Pointer in the JsonStructure.
*
* @param jsonPointer the JSON Pointer
* @return the {@code JsonValue} at the referenced location
* @throws JsonException if the JSON Pointer is malformed, or if it references
* a non-existing member or value.
*
* @since 1.1
*/
default public JsonValue getValue(String jsonPointer) {
return Json.createPointer(jsonPointer).getValue(this);
}
}
代码示例来源:origin: javaee/jsonp
/**
* Get the value referenced by the provided JSON Pointer in the JsonStructure.
*
* @param jsonPointer the JSON Pointer
* @return the {@code JsonValue} at the referenced location
* @throws JsonException if the JSON Pointer is malformed, or if it references
* a non-existing member or value.
*
* @since 1.1
*/
default public JsonValue getValue(String jsonPointer) {
return Json.createPointer(jsonPointer).getValue(this);
}
}
代码示例来源:origin: eclipse-ee4j/jsonp
/**
* Get the value referenced by the provided JSON Pointer in the JsonStructure.
*
* @param jsonPointer the JSON Pointer
* @return the {@code JsonValue} at the referenced location
* @throws JsonException if the JSON Pointer is malformed, or if it references
* a non-existing member or value.
*
* @since 1.1
*/
default public JsonValue getValue(String jsonPointer) {
return Json.createPointer(jsonPointer).getValue(this);
}
}
代码示例来源:origin: org.glassfish/jakarta.json
private JsonPointer getPointer(JsonObject operation, String member) {
JsonString pointerString = operation.getJsonString(member);
if (pointerString == null) {
missingMember(operation.getString("op"), member);
}
return Json.createPointer(pointerString.getString());
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
private JsonPointer getPointer(JsonObject operation, String member) {
JsonString pointerString = operation.getJsonString(member);
if (pointerString == null) {
missingMember(operation.getString("op"), member);
}
return Json.createPointer(pointerString.getString());
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
private JsonPointer getPointer(JsonObject operation, String member) {
JsonString pointerString = operation.getJsonString(member);
if (pointerString == null) {
missingMember(operation.getString("op"), member);
}
return Json.createPointer(pointerString.getString());
}
代码示例来源:origin: eclipse-ee4j/jsonp
private JsonPointer getPointer(JsonObject operation, String member) {
JsonString pointerString = operation.getJsonString(member);
if (pointerString == null) {
missingMember(operation.getString("op"), member);
}
return Json.createPointer(pointerString.getString());
}
内容来源于网络,如有侵权,请联系作者删除!