Class OmitOptionalOperation
- java.lang.Object
-
- com.github.fge.jsonpatch.operation.PathValueOperation
-
- com.github.fge.jsonpatch.operation.OmitOperationBase
-
- com.github.fge.jsonpatch.operation.OmitOptionalOperation
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.JsonSerializable,JsonPatchOperation
public class OmitOptionalOperation extends OmitOperationBase
Extended JSON Patchomit?operation. The operation will remove thevalueatpathif it exists. It will do nothing if the actual value atpathis not equal tovalue. It will do nothing if there is no value atpath.
-
-
Field Summary
Fields Modifier and Type Field Description static StringOPERATION_NAME-
Fields inherited from class com.github.fge.jsonpatch.operation.OmitOperationBase
EQUIVALENCE, pathMissingPolicy
-
Fields inherited from class com.github.fge.jsonpatch.operation.PathValueOperation
BUNDLE, op, path, value
-
-
Constructor Summary
Constructors Constructor Description OmitOptionalOperation(com.github.fge.jackson.jsonpointer.JsonPointer path, com.fasterxml.jackson.databind.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
-
-
-
-
Field Detail
-
OPERATION_NAME
public static final String OPERATION_NAME
- See Also:
- Constant Field Values
-
-