com.github.fge.jsonpatch.operation
Interface JsonPatchOperation

All Superinterfaces:
JsonSerializable
All Known Implementing Classes:
AddOperation, CopyOperation, DualPathOperation, MoveOperation, OmitOperation, OmitOperationBase, OmitOptionalOperation, PathDualValueOperation, PathValueOperation, RemoveOperation, ReplaceOperation, TestOperation, TranslateOperation, TranslateOperationBase, TranslateOptionalOperation

public interface JsonPatchOperation
extends JsonSerializable

Base abstract class for one patch operation

Two more abstract classes extend this one according to the arguments of the operation:


Method Summary
 JsonNode apply(JsonNode node)
          Apply this operation to a JSON value
 String toString()
           
 
Methods inherited from interface com.fasterxml.jackson.databind.JsonSerializable
serialize, serializeWithType
 

Method Detail

apply

JsonNode apply(JsonNode node)
               throws JsonPatchException
Apply 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

toString

String toString()
Overrides:
toString in class Object