com.github.fge.jsonpatch.operation
Class OmitOperation

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

public final class OmitOperation
extends OmitOperationBase

Extended JSON Patch omit operation. The operation will remove the value at path if it exists. It will do nothing if the actual value at path is not equal to value. It will throw a "no such path" error if there is no value at path.


Field Summary
static String OPERATION_NAME
           
 
Fields inherited from class com.github.fge.jsonpatch.operation.PathValueOperation
BUNDLE, op, path, value
 
Constructor Summary
OmitOperation(JsonPointer path, JsonNode value)
           
 
Method Summary
 
Methods inherited from class com.github.fge.jsonpatch.operation.OmitOperationBase
apply
 
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
 

Field Detail

OPERATION_NAME

public static final String OPERATION_NAME
See Also:
Constant Field Values
Constructor Detail

OmitOperation

public OmitOperation(JsonPointer path,
                     JsonNode value)