Package com.gravity9.jsonpatch
Class ReplaceOperation
- java.lang.Object
-
- com.gravity9.jsonpatch.JsonPatchOperation
-
- com.gravity9.jsonpatch.PathValueOperation
-
- com.gravity9.jsonpatch.ReplaceOperation
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.JsonSerializable
public final class ReplaceOperation extends PathValueOperation
JSON PatchreplaceoperationFor this operation,
pathpoints to the value to replace, andvalueis the replacement value.It is an error condition if
pathdoes not point to an actual JSON value.
-
-
Field Summary
-
Fields inherited from class com.gravity9.jsonpatch.PathValueOperation
value
-
Fields inherited from class com.gravity9.jsonpatch.JsonPatchOperation
BUNDLE, op, path
-
-
Constructor Summary
Constructors Constructor Description ReplaceOperation(java.lang.String path, com.fasterxml.jackson.databind.JsonNode value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNodeapplyInternal(com.fasterxml.jackson.databind.JsonNode node)-
Methods inherited from class com.gravity9.jsonpatch.PathValueOperation
getValue, serialize, serializeWithType, toString
-
Methods inherited from class com.gravity9.jsonpatch.JsonPatchOperation
apply, getOp, getPath
-
-
-
-
Method Detail
-
applyInternal
public com.fasterxml.jackson.databind.JsonNode applyInternal(com.fasterxml.jackson.databind.JsonNode node) throws JsonPatchException- Specified by:
applyInternalin classJsonPatchOperation- Throws:
JsonPatchException
-
-