public abstract class DualPathOperation extends Object implements JsonPatchOperation
Modifier and Type | Field and Description |
---|---|
protected static MessageBundle |
BUNDLE |
protected JsonPointer |
from |
protected String |
op |
protected JsonPointer |
path |
Modifier | Constructor and Description |
---|---|
protected |
DualPathOperation(String op,
JsonPointer from,
JsonPointer path)
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 from
protected final JsonPointer path
protected DualPathOperation(String op, JsonPointer from, JsonPointer path)
op
- operation namefrom
- source pathpath
- destination pathpublic 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