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