public abstract class PathValueOperation extends Object implements JsonPatchOperation
Modifier and Type | Field and Description |
---|---|
protected static MessageBundle |
BUNDLE |
protected String |
op |
protected JsonPointer |
path |
protected JsonNode |
value |
Modifier | Constructor and Description |
---|---|
protected |
PathValueOperation(String op,
JsonPointer path,
JsonNode value)
Protected constructor
|
Modifier and Type | Method and Description |
---|---|
void |
serialize(JsonGenerator jgen,
SerializerProvider provider) |
void |
serializeWithType(JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
apply
protected static final MessageBundle BUNDLE
protected final String op
protected final JsonPointer path
protected final JsonNode value
protected PathValueOperation(String op, JsonPointer path, JsonNode value)
op
- operation namepath
- affected pathvalue
- JSON valuepublic final void serialize(JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException
serialize
in interface JsonSerializable
IOException
JsonProcessingException
public final void serializeWithType(JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) throws IOException, JsonProcessingException
serializeWithType
in interface JsonSerializable
IOException
JsonProcessingException
public final String toString()
toString
in interface JsonPatchOperation
toString
in class Object