public class PatchOperation extends Object implements Serializable, Cloneable
Constructor and Description |
---|
PatchOperation() |
Modifier and Type | Method and Description |
---|---|
PatchOperation |
clone() |
boolean |
equals(Object obj) |
String |
getFrom()
The "move" and "copy" operation object MUST contain a "from" member,
which is a string containing a
JSON Pointer value that
references the location in the target document to move the value from. |
String |
getOp()
A patch operation whose value indicates the operation to perform.
|
String |
getPath()
Operation objects MUST have exactly one "path" member.
|
String |
getValue()
The actual value content.
|
int |
hashCode() |
void |
setFrom(String from)
The "move" and "copy" operation object MUST contain a "from" member,
which is a string containing a
JSON Pointer value that
references the location in the target document to move the value from. |
void |
setOp(Op op)
A patch operation whose value indicates the operation to perform.
|
void |
setOp(String op)
A patch operation whose value indicates the operation to perform.
|
void |
setPath(String path)
Operation objects MUST have exactly one "path" member.
|
void |
setValue(String value)
The actual value content.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PatchOperation |
withFrom(String from)
The "move" and "copy" operation object MUST contain a "from" member,
which is a string containing a
JSON Pointer value that
references the location in the target document to move the value from. |
PatchOperation |
withOp(Op op)
A patch operation whose value indicates the operation to perform.
|
PatchOperation |
withOp(String op)
A patch operation whose value indicates the operation to perform.
|
PatchOperation |
withPath(String path)
Operation objects MUST have exactly one "path" member.
|
PatchOperation |
withValue(String value)
The actual value content.
|
public void setOp(String op)
A patch operation whose value indicates the operation to perform. Its value MUST be one of "add", "remove", "replace", "move", "copy", or "test"; other values are errors.
op
- A patch operation whose value indicates the operation to perform.
Its value MUST be one of "add", "remove", "replace", "move",
"copy", or "test"; other values are errors.Op
public String getOp()
A patch operation whose value indicates the operation to perform. Its value MUST be one of "add", "remove", "replace", "move", "copy", or "test"; other values are errors.
Op
public PatchOperation withOp(String op)
A patch operation whose value indicates the operation to perform. Its value MUST be one of "add", "remove", "replace", "move", "copy", or "test"; other values are errors.
op
- A patch operation whose value indicates the operation to perform.
Its value MUST be one of "add", "remove", "replace", "move",
"copy", or "test"; other values are errors.Op
public void setOp(Op op)
A patch operation whose value indicates the operation to perform. Its value MUST be one of "add", "remove", "replace", "move", "copy", or "test"; other values are errors.
op
- A patch operation whose value indicates the operation to perform.
Its value MUST be one of "add", "remove", "replace", "move",
"copy", or "test"; other values are errors.Op
public PatchOperation withOp(Op op)
A patch operation whose value indicates the operation to perform. Its value MUST be one of "add", "remove", "replace", "move", "copy", or "test"; other values are errors.
op
- A patch operation whose value indicates the operation to perform.
Its value MUST be one of "add", "remove", "replace", "move",
"copy", or "test"; other values are errors.Op
public void setPath(String path)
Operation objects MUST have exactly one "path" member. That member's value is a string containing a `JSON-Pointer` value that references a location within the target document (the "target location") where the operation is performed.
path
- Operation objects MUST have exactly one "path" member. That
member's value is a string containing a `JSON-Pointer` value that
references a location within the target document (the
"target location") where the operation is performed.public String getPath()
Operation objects MUST have exactly one "path" member. That member's value is a string containing a `JSON-Pointer` value that references a location within the target document (the "target location") where the operation is performed.
public PatchOperation withPath(String path)
Operation objects MUST have exactly one "path" member. That member's value is a string containing a `JSON-Pointer` value that references a location within the target document (the "target location") where the operation is performed.
path
- Operation objects MUST have exactly one "path" member. That
member's value is a string containing a `JSON-Pointer` value that
references a location within the target document (the
"target location") where the operation is performed.public void setValue(String value)
The actual value content.
value
- The actual value content.public String getValue()
The actual value content.
public PatchOperation withValue(String value)
The actual value content.
value
- The actual value content.public void setFrom(String from)
The "move" and "copy" operation object MUST contain a "from" member,
which is a string containing a JSON Pointer
value that
references the location in the target document to move the value from.
from
- The "move" and "copy" operation object MUST contain a "from"
member, which is a string containing a JSON Pointer
value that references the location in the target document to move
the value from.public String getFrom()
The "move" and "copy" operation object MUST contain a "from" member,
which is a string containing a JSON Pointer
value that
references the location in the target document to move the value from.
JSON Pointer
value that references the location in the target document to move
the value from.public PatchOperation withFrom(String from)
The "move" and "copy" operation object MUST contain a "from" member,
which is a string containing a JSON Pointer
value that
references the location in the target document to move the value from.
from
- The "move" and "copy" operation object MUST contain a "from"
member, which is a string containing a JSON Pointer
value that references the location in the target document to move
the value from.public String toString()
toString
in class Object
Object.toString()
public PatchOperation clone()
Copyright © 2016. All rights reserved.