public abstract class PathDualValueOperation extends Object implements JsonPatchOperation
Modifier and Type | Field and Description |
---|---|
protected static MessageBundle |
BUNDLE |
protected JsonNode |
fromValue |
protected String |
op |
protected JsonPointer |
path |
protected JsonNode |
toValue |
Modifier | Constructor and Description |
---|---|
protected |
PathDualValueOperation(String op,
JsonPointer path,
JsonNode fromValue,
JsonNode toValue)
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 fromValue
protected final JsonNode toValue
protected PathDualValueOperation(String op, JsonPointer path, JsonNode fromValue, JsonNode toValue)
op
- operation namepath
- source pathfromValue
- original pathtoValue
- new 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