public abstract class TranslateOperationBase extends PathDualValueOperation
| Constructor and Description |
|---|
TranslateOperationBase(String op,
JsonPointer path,
JsonNode fromValue,
JsonNode toValue,
PathMissingPolicy pathMissingPolicy) |
| Modifier and Type | Method and Description |
|---|---|
JsonNode |
apply(JsonNode node)
Apply this operation to a JSON value
|
serialize, serializeWithType, toStringpublic TranslateOperationBase(String op, JsonPointer path, JsonNode fromValue, JsonNode toValue, PathMissingPolicy pathMissingPolicy)
public JsonNode apply(JsonNode node) throws JsonPatchException
JsonPatchOperationnode - the value to patchJsonPatchException - operation failed to apply to this value