com.github.fge.jsonpatch.operation
Class TranslateOptionalOperation
java.lang.Object
com.github.fge.jsonpatch.operation.PathDualValueOperation
com.github.fge.jsonpatch.operation.TranslateOperationBase
com.github.fge.jsonpatch.operation.TranslateOptionalOperation
- All Implemented Interfaces:
- JsonSerializable, JsonPatchOperation
public final class TranslateOptionalOperation
- 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 do nothing if there is no value at path
.
OPERATION_NAME
public static final String OPERATION_NAME
- See Also:
- Constant Field Values
TranslateOptionalOperation
public TranslateOptionalOperation(JsonPointer path,
JsonNode fromValue,
JsonNode toValue)