Class NonObjectMergePatch
- java.lang.Object
-
- com.github.fge.jsonpatch.mergepatch.JsonMergePatch
-
- com.github.fge.jsonpatch.mergepatch.NonObjectMergePatch
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.JsonSerializable
@ParametersAreNonnullByDefault public class NonObjectMergePatch extends JsonMergePatch
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.databind.JsonNodenode-
Fields inherited from class com.github.fge.jsonpatch.mergepatch.JsonMergePatch
BUNDLE, MAPPER
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNodeapply(com.fasterxml.jackson.databind.JsonNode input)Apply the patch to a given JSON valuevoidserialize(com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)voidserializeWithType(com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)-
Methods inherited from class com.github.fge.jsonpatch.mergepatch.JsonMergePatch
fromJson
-
-
-
-
Method Detail
-
apply
public com.fasterxml.jackson.databind.JsonNode apply(com.fasterxml.jackson.databind.JsonNode input) throws JsonPatchExceptionDescription copied from class:JsonMergePatchApply the patch to a given JSON value- Specified by:
applyin classJsonMergePatch- Parameters:
input- the value to patch- Returns:
- the patched value
- Throws:
JsonPatchException- never thrown; only for consistency withJsonPatch
-
serialize
public void serialize(com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException, com.fasterxml.jackson.core.JsonProcessingException- Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
serializeWithType
public void serializeWithType(com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) throws IOException, com.fasterxml.jackson.core.JsonProcessingException- Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
-