/** * Creates JSON Pointer (<a href="http://tools.ietf.org/html/rfc6901">RFC 6901</a>) * from given {@code jsonPointer} string. * <ul> * <li>An empty {@code jsonPointer} string defines a reference to the target itself.</li> * <li>If the {@code jsonPointer} string is non-empty, it must be a sequence of '{@code /}' prefixed tokens.</li> * </ul> * * @param jsonPointer the valid escaped JSON Pointer string * @throws NullPointerException if {@code jsonPointer} is {@code null} * @throws JsonException if {@code jsonPointer} is not a valid JSON Pointer * @return a JSON Pointer * * @since 1.1 */ public static JsonPointer createPointer(String jsonPointer) { return JsonProvider.provider().createPointer(jsonPointer); }
@Override public JsonPointer createPointer(String path) { return DELEGATE.createPointer(path); }
@Override public JsonPointer createPointer(final String path) { return provider.createPointer(path); }
@Override public JsonPointer createPointer(final String path) { return jsonpProvider.createPointer(path); }
@Override public JsonPointer createPointer(String path) { return DELEGATE.createPointer(path); }
@Override public JsonPointer createPointer(final String path) { return provider.createPointer(path); }
/** * Create a {@link JsonPointer} for the given path * * @since 1.1 */ public static JsonPointer createPointer(String path) { return JsonProvider.provider().createPointer(path); }
/** * Create a {@link JsonPointer} for the given path * * @since 1.1 */ public static JsonPointer createPointer(String path) { return JsonProvider.provider().createPointer(path); }
/** * Create a {@link JsonPointer} for the given path * * @since 1.1 */ public static JsonPointer createPointer(String path) { return JsonProvider.provider().createPointer(path); }
/** * Creates JSON Pointer (<a href="http://tools.ietf.org/html/rfc6901">RFC 6901</a>) * from given {@code jsonPointer} string. * <ul> * <li>An empty {@code jsonPointer} string defines a reference to the target itself.</li> * <li>If the {@code jsonPointer} string is non-empty, it must be a sequence of '{@code /}' prefixed tokens.</li> * </ul> * * @param jsonPointer the valid escaped JSON Pointer string * @throws NullPointerException if {@code jsonPointer} is {@code null} * @throws JsonException if {@code jsonPointer} is not a valid JSON Pointer * @return a JSON Pointer * * @since 1.1 */ public static JsonPointer createPointer(String jsonPointer) { return JsonProvider.provider().createPointer(jsonPointer); }
/** * Creates JSON Pointer (<a href="http://tools.ietf.org/html/rfc6901">RFC 6901</a>) * from given {@code jsonPointer} string. * <ul> * <li>An empty {@code jsonPointer} string defines a reference to the target itself.</li> * <li>If the {@code jsonPointer} string is non-empty, it must be a sequence of '{@code /}' prefixed tokens.</li> * </ul> * * @param jsonPointer the valid escaped JSON Pointer string * @throws NullPointerException if {@code jsonPointer} is {@code null} * @throws JsonException if {@code jsonPointer} is not a valid JSON Pointer * @return a JSON Pointer * * @since 1.1 */ public static JsonPointer createPointer(String jsonPointer) { return JsonProvider.provider().createPointer(jsonPointer); }
/** * Creates JSON Pointer (<a href="http://tools.ietf.org/html/rfc6901">RFC 6901</a>) * from given {@code jsonPointer} string. * <ul> * <li>An empty {@code jsonPointer} string defines a reference to the target itself.</li> * <li>If the {@code jsonPointer} string is non-empty, it must be a sequence of '{@code /}' prefixed tokens.</li> * </ul> * * @param jsonPointer the valid escaped JSON Pointer string * @throws NullPointerException if {@code jsonPointer} is {@code null} * @throws JsonException if {@code jsonPointer} is not a valid JSON Pointer * @return a JSON Pointer * * @since 1.1 */ public static JsonPointer createPointer(String jsonPointer) { return JsonProvider.provider().createPointer(jsonPointer); }
/** * Creates JSON Pointer (<a href="http://tools.ietf.org/html/rfc6901">RFC 6901</a>) * from given {@code jsonPointer} string. * <ul> * <li>An empty {@code jsonPointer} string defines a reference to the target itself.</li> * <li>If the {@code jsonPointer} string is non-empty, it must be a sequence of '{@code /}' prefixed tokens.</li> * </ul> * * @param jsonPointer the valid escaped JSON Pointer string * @throws NullPointerException if {@code jsonPointer} is {@code null} * @throws JsonException if {@code jsonPointer} is not a valid JSON Pointer * @return a JSON Pointer * * @since 1.1 */ public static JsonPointer createPointer(String jsonPointer) { return JsonProvider.provider().createPointer(jsonPointer); }
/** * Creates JSON Pointer (<a href="http://tools.ietf.org/html/rfc6901">RFC 6901</a>) * from given {@code jsonPointer} string. * <ul> * <li>An empty {@code jsonPointer} string defines a reference to the target itself.</li> * <li>If the {@code jsonPointer} string is non-empty, it must be a sequence of '{@code /}' prefixed tokens.</li> * </ul> * * @param jsonPointer the valid escaped JSON Pointer string * @throws NullPointerException if {@code jsonPointer} is {@code null} * @throws JsonException if {@code jsonPointer} is not a valid JSON Pointer * @return a JSON Pointer * * @since 1.1 */ public static JsonPointer createPointer(String jsonPointer) { return JsonProvider.provider().createPointer(jsonPointer); }
/** * Creates JSON Pointer (<a href="http://tools.ietf.org/html/rfc6901">RFC 6901</a>) * from given {@code jsonPointer} string. * <ul> * <li>An empty {@code jsonPointer} string defines a reference to the target itself.</li> * <li>If the {@code jsonPointer} string is non-empty, it must be a sequence of '{@code /}' prefixed tokens.</li> * </ul> * * @param jsonPointer the valid escaped JSON Pointer string * @throws NullPointerException if {@code jsonPointer} is {@code null} * @throws JsonException if {@code jsonPointer} is not a valid JSON Pointer * @return a JSON Pointer * * @since 1.1 */ public static JsonPointer createPointer(String jsonPointer) { return JsonProvider.provider().createPointer(jsonPointer); }
/** * Creates JSON Pointer (<a href="http://tools.ietf.org/html/rfc6901">RFC 6901</a>) * from given {@code jsonPointer} string. * <ul> * <li>An empty {@code jsonPointer} string defines a reference to the target itself.</li> * <li>If the {@code jsonPointer} string is non-empty, it must be a sequence of '{@code /}' prefixed tokens.</li> * </ul> * * @param jsonPointer the valid escaped JSON Pointer string * @throws NullPointerException if {@code jsonPointer} is {@code null} * @throws JsonException if {@code jsonPointer} is not a valid JSON Pointer * @return a JSON Pointer * * @since 1.1 */ public static JsonPointer createPointer(String jsonPointer) { return JsonProvider.provider().createPointer(jsonPointer); }
default JsonValue getValue(String jsonPointer) { return JsonProvider.provider().createPointer(jsonPointer).getValue(this); } }
private Patch forLang(final ResourceBundle bundle, final JsonProvider provider) { return patchPerLang.computeIfAbsent(bundle.getLocale().getLanguage(), k -> { final List<SimplePropertyDefinition> prependProperties = withTranslations(bundle, base.prependProperties); final List<SimplePropertyDefinition> appendProperties = withTranslations(bundle, base.appendProperties); return new Patch(prependProperties, appendProperties, Stream .of(prependProperties, appendProperties) .filter(Objects::nonNull) .flatMap(Collection::stream) .filter(it -> "true".equalsIgnoreCase(it.getMetadata().get("proxyserver::formId")) && !it.getPath().contains("${index}")) .findFirst() .map(it -> provider.createPointer('/' + it.getPath().replace('.', '/'))) .orElse(null)); }); }
default JsonValue getValue(String jsonPointer) { return JsonProvider.provider().createPointer(jsonPointer).getValue(this); } }
default JsonValue getValue(String jsonPointer) { return JsonProvider.provider().createPointer(jsonPointer).getValue(this); } }