Interface JsonPatchOperation
-
- All Superinterfaces:
com.fasterxml.jackson.databind.JsonSerializable
- All Known Implementing Classes:
AddOperation,CopyOperation,DualPathOperation,MoveOperation,OmitOperation,OmitOperationBase,OmitOptionalOperation,PathValueOperation,RemoveOperation,ReplaceOperation,TestOperation
public interface JsonPatchOperation extends com.fasterxml.jackson.databind.JsonSerializableBase abstract class for one patch operationTwo more abstract classes extend this one according to the arguments of the operation:
DualPathOperationfor operations taking a second pointer as an argument (copyandmove);PathValueOperationfor operations taking a value as an argument (add,replaceandtest).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNodeapply(com.fasterxml.jackson.databind.JsonNode node)Apply this operation to a JSON valueStringtoString()
-
-
-
Method Detail
-
apply
com.fasterxml.jackson.databind.JsonNode apply(com.fasterxml.jackson.databind.JsonNode node) throws JsonPatchExceptionApply this operation to a JSON value- Parameters:
node- the value to patch- Returns:
- the patched value
- Throws:
JsonPatchException- operation failed to apply to this value
-
-