com.github.fge.jsonpatch
Class PathValueOperation
java.lang.Object
com.github.fge.jsonpatch.JsonPatchOperation
com.github.fge.jsonpatch.PathValueOperation
- All Implemented Interfaces:
- JsonSerializable
- Direct Known Subclasses:
- AddOperation, ReplaceOperation, TestOperation
public abstract class PathValueOperation
- extends JsonPatchOperation
Base class for patch operations taking a value in addition to a path
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
value
protected final JsonNode value
PathValueOperation
protected PathValueOperation(java.lang.String op,
JsonPointer path,
JsonNode value)
- Protected constructor
- Parameters:
op - operation namepath - affected pathvalue - JSON value
serialize
public final void serialize(JsonGenerator jgen,
SerializerProvider provider)
throws java.io.IOException,
JsonProcessingException
- Throws:
java.io.IOException
JsonProcessingException
serializeWithType
public final void serializeWithType(JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer)
throws java.io.IOException,
JsonProcessingException
- Throws:
java.io.IOException
JsonProcessingException
toString
public final java.lang.String toString()
- Specified by:
toString in class JsonPatchOperation