public abstract class RemoveOperationBase extends Object implements JsonPatchOperation
Modifier and Type | Field and Description |
---|---|
protected static MessageBundle |
BUNDLE |
protected String |
op |
protected JsonPointer |
path |
Constructor and Description |
---|
RemoveOperationBase(String op,
JsonPointer path,
PathMissingPolicy pathMissingPolicy) |
Modifier and Type | Method and Description |
---|---|
JsonNode |
apply(JsonNode node)
Apply this operation to a JSON value
|
void |
serialize(JsonGenerator jgen,
SerializerProvider provider) |
void |
serializeWithType(JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
String |
toString() |
protected static final MessageBundle BUNDLE
protected final String op
protected final JsonPointer path
public RemoveOperationBase(String op, JsonPointer path, PathMissingPolicy pathMissingPolicy)
public JsonNode apply(JsonNode node) throws JsonPatchException
JsonPatchOperation
apply
in interface JsonPatchOperation
node
- the value to patchJsonPatchException
- operation failed to apply to this valuepublic void serialize(JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException
serialize
in interface JsonSerializable
IOException
JsonProcessingException
public void serializeWithType(JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) throws IOException, JsonProcessingException
serializeWithType
in interface JsonSerializable
IOException
JsonProcessingException
public String toString()
toString
in interface JsonPatchOperation
toString
in class Object