com.networknt.jsonoverlay.Overlay Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-overlay Show documentation
Show all versions of json-overlay Show documentation
A fork of RepreZen JsonOverlay with all dependencies and code generation removed
/*********************************************************************
* Copyright (c) 2017 ModelSolv, Inc. and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* ModelSolv, Inc.
* - initial API and implementation and/or initial documentation
**********************************************************************/
package com.networknt.jsonoverlay;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import com.fasterxml.jackson.core.JsonPointer;
import com.fasterxml.jackson.databind.JsonNode;
import com.networknt.jsonoverlay.PositionInfo.PositionEndpoint;
public class Overlay {
private JsonOverlay overlay;
public Overlay(JsonOverlay overlay) {
this.overlay = overlay;
}
public static Overlay of(JsonOverlay overlay) {
return new Overlay(overlay);
}
public Overlay(IJsonOverlay> overlay) {
@SuppressWarnings("unchecked")
JsonOverlay castOverlay = (JsonOverlay) overlay;
this.overlay = castOverlay;
}
public static Overlay of(IJsonOverlay overlay) {
return new Overlay(overlay);
}
public static Overlay
© 2015 - 2025 Weber Informatics LLC | Privacy Policy