public abstract class JsonPatchOperation extends java.lang.Object implements JsonSerializable
| Modifier and Type | Field and Description |
|---|---|
protected static MessageBundle |
BUNDLE |
protected java.lang.String |
op |
protected JsonPointer |
path |
| Modifier | Constructor and Description |
|---|---|
protected |
JsonPatchOperation(java.lang.String op,
JsonPointer path)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract JsonNode |
apply(JsonNode node)
Apply this operation to a JSON value
|
abstract java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitserialize, serializeWithTypeprotected static final MessageBundle BUNDLE
protected final java.lang.String op
protected final JsonPointer path
protected JsonPatchOperation(java.lang.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 valuepublic abstract java.lang.String toString()
toString in class java.lang.Object