Class PathValueOperation
- java.lang.Object
-
- com.github.fge.jsonpatch.operation.PathValueOperation
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.JsonSerializable,JsonPatchOperation
- Direct Known Subclasses:
AddOperation,OmitOperationBase,ReplaceOperation,TestOperation
public abstract class PathValueOperation extends Object implements JsonPatchOperation
Base class for patch operations taking a value in addition to a path
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPathValueOperation(String op, com.github.fge.jackson.jsonpointer.JsonPointer path, com.fasterxml.jackson.databind.JsonNode value)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
-
path
protected final com.github.fge.jackson.jsonpointer.JsonPointer path
-
value
protected final com.fasterxml.jackson.databind.JsonNode value
-
-
Constructor Detail
-
PathValueOperation
protected PathValueOperation(String op, com.github.fge.jackson.jsonpointer.JsonPointer path, com.fasterxml.jackson.databind.JsonNode value)
Protected constructor- Parameters:
op- operation namepath- affected pathvalue- JSON value
-
-
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
-
-