Class PatchOperation
- All Implemented Interfaces:
Serializable
,Cloneable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getFrom()
The "move" and "copy" operation object MUST contain a "from" member, which is a string containing aJSON Pointer
value that references the location in the target document to move the value from.getOp()
A patch operation whose value indicates the operation to perform.getPath()
Operation objects MUST have exactly one "path" member.getValue()
The actual value content.int
hashCode()
void
The "move" and "copy" operation object MUST contain a "from" member, which is a string containing aJSON Pointer
value that references the location in the target document to move the value from.void
A patch operation whose value indicates the operation to perform.void
A patch operation whose value indicates the operation to perform.void
Operation objects MUST have exactly one "path" member.void
The actual value content.toString()
Returns a string representation of this object; useful for testing and debugging.The "move" and "copy" operation object MUST contain a "from" member, which is a string containing aJSON Pointer
value that references the location in the target document to move the value from.A patch operation whose value indicates the operation to perform.A patch operation whose value indicates the operation to perform.Operation objects MUST have exactly one "path" member.The actual value content.
-
Constructor Details
-
PatchOperation
public PatchOperation()
-
-
Method Details
-
setOp
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.
- Parameters:
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.- See Also:
-
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.
- Returns:
- 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.
- See Also:
-
withOp
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setOp
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.
- Parameters:
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.- See Also:
-
withOp
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setPath
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.
- Parameters:
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.
-
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.
- Returns:
- 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.
-
withPath
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
The actual value content.
- Parameters:
value
- The actual value content.
-
getValue
The actual value content.
- Returns:
- The actual value content.
-
withValue
The actual value content.
- Parameters:
value
- The actual value content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFrom
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.- Parameters:
from
- The "move" and "copy" operation object MUST contain a "from" member, which is a string containing aJSON Pointer
value that references the location in the target document to move the value from.
-
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.- Returns:
- 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.
-
withFrom
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.- Parameters:
from
- The "move" and "copy" operation object MUST contain a "from" member, which is a string containing aJSON Pointer
value that references the location in the target document to move the value from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-