com.github.fge.jsonpatch.operation
Class OmitOperationBase
java.lang.Object
com.github.fge.jsonpatch.operation.PathValueOperation
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.
OmitOperationBase
public OmitOperationBase(String op,
JsonPointer path,
JsonNode value,
PathMissingPolicy pathMissingPolicy)
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