public final class ReplaceOperation extends PathValueOperation
replace operation
For this operation, path points to the value to replace, and
value is the replacement value.
It is an error condition if path does not point to an actual JSON
value.
JsonPatchOperation.SplitPointervaluepath| Constructor and Description |
|---|
ReplaceOperation(JsonPointer path,
JsonNode value) |
public ReplaceOperation(JsonPointer path, JsonNode value)
public JsonNode apply(JsonNode node) throws JsonPatchException
JsonPatchOperationapply in class JsonPatchOperationnode - the value to patchJsonPatchException - operation failed to apply to this valuepublic String toString()
toString in class PathValueOperationCopyright © 2013. All Rights Reserved.