Class ReplaceOp

java.lang.Object
org.apache.juneau.bean.jsonpatch.JsonPatchOperation
org.apache.juneau.bean.jsonpatch.ReplaceOp

@Marshalled(typeName="replace") public class ReplaceOp extends JsonPatchOperation
The JSON Patch "replace" operation per RFC 6902 § 4.3.

Replaces the value at path with value.

  • Constructor Details

    • ReplaceOp

      public ReplaceOp()
      Default constructor.
    • ReplaceOp

      public ReplaceOp(String path, Object value)
      Convenience constructor.
      Parameters:
      path - The JSON Pointer target. Can be null to leave the property unset.
      value - The replacement value. Can be null to leave the property unset.
  • Method Details

    • getValue

      public Object getValue()
      Bean property getter: value.
      Returns:
      The value of the value property, or null if it is not set.
    • setValue

      public ReplaceOp setValue(Object value)
      Bean property setter: value.
      Parameters:
      value - The new value for this property. Can be null to unset the property.
      Returns:
      This object.