public abstract class JsonPatchOperation extends Object implements com.fasterxml.jackson.databind.JsonSerializable
| Modifier and Type | Field and Description |
|---|---|
protected static MessageBundle |
BUNDLE |
protected String |
op |
protected JsonPointer |
path |
| Modifier | Constructor and Description |
|---|---|
protected |
JsonPatchOperation(String op,
JsonPointer path)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract com.fasterxml.jackson.databind.JsonNode |
apply(com.fasterxml.jackson.databind.JsonNode node)
Apply this operation to a JSON value
|
abstract String |
toString() |
protected static final MessageBundle BUNDLE
protected final String op
protected final JsonPointer path
protected JsonPatchOperation(String op, JsonPointer path)
op - the operation namepath - the JSON Pointer for this operationpublic abstract com.fasterxml.jackson.databind.JsonNode apply(com.fasterxml.jackson.databind.JsonNode node)
throws JsonPatchException
node - the value to patchJsonPatchException - operation failed to apply to this value