com.github.fge.jsonpatch.operation
Class OmitOperationBase

java.lang.Object
  extended by com.github.fge.jsonpatch.operation.PathValueOperation
      extended by com.github.fge.jsonpatch.operation.OmitOperationBase
All Implemented Interfaces:
JsonSerializable, JsonPatchOperation
Direct Known Subclasses:
OmitOperation, OmitOptionalOperation

public abstract class OmitOperationBase
extends PathValueOperation

OmitOperationBase implements the basic concept of omitting the specified value at the requested path.


Field Summary
 
Fields inherited from class com.github.fge.jsonpatch.operation.PathValueOperation
BUNDLE, op, path, value
 
Constructor Summary
OmitOperationBase(String op, JsonPointer path, JsonNode value, PathMissingPolicy pathMissingPolicy)
           
 
Method Summary
 JsonNode apply(JsonNode node)
          Apply this operation to a JSON value
 
Methods inherited from class com.github.fge.jsonpatch.operation.PathValueOperation
serialize, serializeWithType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OmitOperationBase

public OmitOperationBase(String op,
                         JsonPointer path,
                         JsonNode value,
                         PathMissingPolicy pathMissingPolicy)
Method Detail

apply

public JsonNode apply(JsonNode node)
               throws JsonPatchException
Description copied from interface: JsonPatchOperation
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