com.github.fge.jsonpatch
Class JsonPatchFactory

java.lang.Object
  extended by com.github.fge.jsonpatch.JsonPatchFactory

public class JsonPatchFactory
extends Object

A JsonPatchFactory is able to create a JsonPatch from a JsonNode.


Constructor Summary
JsonPatchFactory(ObjectMapper mapper)
           
 
Method Summary
 JsonPatch fromJson(JsonNode node)
          Builds a JSON Patch out of a JSON representation with support for an extended set of JSON patch operations
 ObjectReader getReader()
           
 ObjectWriter getWriter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonPatchFactory

public JsonPatchFactory(ObjectMapper mapper)
Method Detail

getReader

public ObjectReader getReader()

getWriter

public ObjectWriter getWriter()

fromJson

public JsonPatch fromJson(JsonNode node)
                   throws IOException
Builds a JSON Patch out of a JSON representation with support for an extended set of JSON patch operations

Parameters:
node - the JSON representation of the generated JSON Patch
Returns:
a JSON Patch
Throws:
IOException - input is not a valid JSON patch
NullPointerException - input is null