Class OmitOperationBase
- java.lang.Object
-
- com.github.fge.jsonpatch.operation.PathValueOperation
-
- com.github.fge.jsonpatch.operation.OmitOperationBase
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.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 Modifier and Type Field Description protected static com.google.common.base.Equivalence<com.fasterxml.jackson.databind.JsonNode>EQUIVALENCEprotected PathMissingPolicypathMissingPolicy-
Fields inherited from class com.github.fge.jsonpatch.operation.PathValueOperation
BUNDLE, op, path, value
-
-
Constructor Summary
Constructors Constructor Description OmitOperationBase(String op, com.github.fge.jackson.jsonpointer.JsonPointer path, com.fasterxml.jackson.databind.JsonNode value, PathMissingPolicy pathMissingPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNodeapply(com.fasterxml.jackson.databind.JsonNode node)Apply this operation to a JSON value-
Methods inherited from class com.github.fge.jsonpatch.operation.PathValueOperation
serialize, serializeWithType, toString
-
-
-
-
Field Detail
-
EQUIVALENCE
protected static final com.google.common.base.Equivalence<com.fasterxml.jackson.databind.JsonNode> EQUIVALENCE
-
pathMissingPolicy
protected PathMissingPolicy pathMissingPolicy
-
-
Constructor Detail
-
OmitOperationBase
public OmitOperationBase(String op, com.github.fge.jackson.jsonpointer.JsonPointer path, com.fasterxml.jackson.databind.JsonNode value, PathMissingPolicy pathMissingPolicy)
-
-
Method Detail
-
apply
public com.fasterxml.jackson.databind.JsonNode apply(com.fasterxml.jackson.databind.JsonNode node) throws JsonPatchExceptionDescription copied from interface:JsonPatchOperationApply 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
-
-