Class DualPathOperation
- java.lang.Object
-
- com.github.fge.jsonpatch.operation.DualPathOperation
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.JsonSerializable,JsonPatchOperation
- Direct Known Subclasses:
CopyOperation,MoveOperation
public abstract class DualPathOperation extends Object implements JsonPatchOperation
Base class for JSON Patch operations taking two JSON Pointers as arguments
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDualPathOperation(String op, com.github.fge.jackson.jsonpointer.JsonPointer from, com.github.fge.jackson.jsonpointer.JsonPointer path)Protected constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidserialize(com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)voidserializeWithType(com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.fge.jsonpatch.operation.JsonPatchOperation
apply
-
-
-
-
Field Detail
-
BUNDLE
protected static final com.github.fge.msgsimple.bundle.MessageBundle BUNDLE
-
op
protected final String op
-
from
protected final com.github.fge.jackson.jsonpointer.JsonPointer from
-
path
protected final com.github.fge.jackson.jsonpointer.JsonPointer path
-
-
Constructor Detail
-
DualPathOperation
protected DualPathOperation(String op, com.github.fge.jackson.jsonpointer.JsonPointer from, com.github.fge.jackson.jsonpointer.JsonPointer path)
Protected constructor- Parameters:
op- operation namefrom- source pathpath- destination path
-
-
Method Detail
-
serialize
public final void serialize(com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException, com.fasterxml.jackson.core.JsonProcessingException- Specified by:
serializein interfacecom.fasterxml.jackson.databind.JsonSerializable- Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
serializeWithType
public final void serializeWithType(com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) throws IOException, com.fasterxml.jackson.core.JsonProcessingException- Specified by:
serializeWithTypein interfacecom.fasterxml.jackson.databind.JsonSerializable- Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
toString
public final String toString()
- Specified by:
toStringin interfaceJsonPatchOperation- Overrides:
toStringin classObject
-
-