javax.json.Json.createPointer()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(6.3k)|赞(0)|评价(0)|浏览(134)

本文整理了Java中javax.json.Json.createPointer()方法的一些代码示例,展示了Json.createPointer()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Json.createPointer()方法的具体详情如下:
包路径:javax.json.Json
类名称:Json
方法名:createPointer

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());
}

相关文章