public abstract class JsonPatchOperation extends Object implements 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 JsonNode |
apply(JsonNode node)
Apply this operation to a JSON value
|
abstract String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
serialize, serializeWithType
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 JsonNode apply(JsonNode node) throws JsonPatchException
node
- the value to patchJsonPatchException
- operation failed to apply to this value