com.github.fge.jsonpatch
Class DualPathOperation

java.lang.Object
  extended by com.github.fge.jsonpatch.JsonPatchOperation
      extended by com.github.fge.jsonpatch.DualPathOperation
All Implemented Interfaces:
JsonSerializable
Direct Known Subclasses:
CopyOperation, MoveOperation

public abstract class DualPathOperation
extends JsonPatchOperation

Base class for JSON Patch operations taking two JSON Pointers as arguments


Field Summary
protected  JsonPointer from
           
 
Fields inherited from class com.github.fge.jsonpatch.JsonPatchOperation
BUNDLE, op, path
 
Constructor Summary
protected DualPathOperation(String op, JsonPointer from, JsonPointer path)
          Protected constructor
 
Method Summary
 void serialize(JsonGenerator jgen, SerializerProvider provider)
           
 void serializeWithType(JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer)
           
 String toString()
           
 
Methods inherited from class com.github.fge.jsonpatch.JsonPatchOperation
apply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

from

protected final JsonPointer from
Constructor Detail

DualPathOperation

protected DualPathOperation(String op,
                            JsonPointer from,
                            JsonPointer path)
Protected constructor

Parameters:
op - operation name
from - source path
path - destination path
Method Detail

serialize

public final void serialize(JsonGenerator jgen,
                            SerializerProvider provider)
                     throws IOException,
                            JsonProcessingException
Throws:
IOException
JsonProcessingException

serializeWithType

public final void serializeWithType(JsonGenerator jgen,
                                    SerializerProvider provider,
                                    TypeSerializer typeSer)
                             throws IOException,
                                    JsonProcessingException
Throws:
IOException
JsonProcessingException

toString

public final String toString()
Specified by:
toString in class JsonPatchOperation