public class PatchOperation
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.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. |
private java.lang.String |
op
A patch operation whose value indicates the operation to perform.
|
private java.lang.String |
path
Operation objects MUST have exactly one "path" member.
|
private java.lang.String |
value
The actual value content.
|
Constructor and Description |
---|
PatchOperation() |
Modifier and Type | Method and Description |
---|---|
PatchOperation |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.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. |
java.lang.String |
getOp()
A patch operation whose value indicates the operation to perform.
|
java.lang.String |
getPath()
Operation objects MUST have exactly one "path" member.
|
java.lang.String |
getValue()
The actual value content.
|
int |
hashCode() |
void |
setFrom(java.lang.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(java.lang.String op)
A patch operation whose value indicates the operation to perform.
|
void |
setPath(java.lang.String path)
Operation objects MUST have exactly one "path" member.
|
void |
setValue(java.lang.String value)
The actual value content.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PatchOperation |
withFrom(java.lang.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(java.lang.String op)
A patch operation whose value indicates the operation to perform.
|
PatchOperation |
withPath(java.lang.String path)
Operation objects MUST have exactly one "path" member.
|
PatchOperation |
withValue(java.lang.String value)
The actual value content.
|
private java.lang.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.
private java.lang.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.
private java.lang.String value
The actual value content.
private java.lang.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.
public void setOp(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.String value)
The actual value content.
value
- The actual value content.public java.lang.String getValue()
The actual value content.
public PatchOperation withValue(java.lang.String value)
The actual value content.
value
- The actual value content.public void setFrom(java.lang.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 java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PatchOperation clone()
clone
in class java.lang.Object