public class JsonPatchConverter extends Object implements PatchConverter<com.fasterxml.jackson.databind.JsonNode>
| Constructor and Description |
|---|
JsonPatchConverter(com.fasterxml.jackson.databind.ObjectMapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
Patch |
convert(com.fasterxml.jackson.databind.JsonNode jsonNode)
Constructs a
Patch object given a JsonNode. |
com.fasterxml.jackson.databind.JsonNode |
convert(Patch patch)
Renders a
Patch as a JsonNode. |
public JsonPatchConverter(com.fasterxml.jackson.databind.ObjectMapper mapper)
public Patch convert(com.fasterxml.jackson.databind.JsonNode jsonNode)
Patch object given a JsonNode.convert in interface PatchConverter<com.fasterxml.jackson.databind.JsonNode>jsonNode - a JsonNode containing the JSON PatchPatchpublic com.fasterxml.jackson.databind.JsonNode convert(Patch patch)
Patch as a JsonNode.convert in interface PatchConverter<com.fasterxml.jackson.databind.JsonNode>patch - the patchJsonNode containing JSON Patch.Copyright © 2019 DuraSpace. All rights reserved.