com.github.fge.jsonpatch.operation
Class TranslateOperation
java.lang.Object
com.github.fge.jsonpatch.operation.PathDualValueOperation
com.github.fge.jsonpatch.operation.TranslateOperationBase
com.github.fge.jsonpatch.operation.TranslateOperation
- All Implemented Interfaces:
- JsonSerializable, JsonPatchOperation
public final class TranslateOperation
- extends TranslateOperationBase
Extended JSON Patch translate
operation.
The operation will translate a fromValue
to a toValue
at path
if it exists.
It will do nothing if the actual value at path
is not equal to fromValue
.
It will throw a "no such path" error if there is no value at path
.
OPERATION_NAME
public static final String OPERATION_NAME
- See Also:
- Constant Field Values
TranslateOperation
public TranslateOperation(JsonPointer path,
JsonNode fromValue,
JsonNode toValue)