
com.github.fge.jsonpatch.JsonPatchOperationFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-patch Show documentation
Show all versions of json-patch Show documentation
JSON Patch (RFC 6902) and JSON Merge Patch (RFC 7386) implementation in Java
package com.github.fge.jsonpatch;
import com.fasterxml.jackson.databind.JsonNode;
public interface JsonPatchOperationFactory
{
/**
* Gets the name of the JsonPatchOperation that this factory will create.
* @return
*/
public String getOperationName();
/**
* Gets the class of JsonPatchOperation that this factory will create.
* @return
*/
public Class getOperationClass();
/**
* Creates a JsonPatchOperation from a JsonNode
* @param node The JsonNode to create the JsonPatchOperation from
* @return The JsonPatchOperation
* @throws JsonPatchException
*/
public JsonPatchOperation create(JsonNode node) throws JsonPatchException;
}