com.github.fge.jsonpatch.operation
Class PathValueOperation
java.lang.Object
com.github.fge.jsonpatch.operation.PathValueOperation
- All Implemented Interfaces:
- 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
BUNDLE
protected static final MessageBundle BUNDLE
op
protected final String op
path
protected final JsonPointer path
value
protected final JsonNode value
PathValueOperation
protected PathValueOperation(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 IOException,
JsonProcessingException
- Specified by:
serialize
in interface JsonSerializable
- Throws:
IOException
JsonProcessingException
serializeWithType
public final void serializeWithType(JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer)
throws IOException,
JsonProcessingException
- Specified by:
serializeWithType
in interface JsonSerializable
- Throws:
IOException
JsonProcessingException
toString
public final String toString()
- Specified by:
toString
in interface JsonPatchOperation
- Overrides:
toString
in class Object