Class AddOp


@Marshalled(typeName="add") public class AddOp extends JsonPatchOperation
The JSON Patch "add" operation per RFC 6902 § 4.1.

Adds value at path.

  • Constructor Details

    • AddOp

      public AddOp()
      Default constructor.
    • AddOp

      public AddOp(String path, Object value)
      Convenience constructor.
      Parameters:
      path - The JSON Pointer target. Can be null to leave the property unset.
      value - The value to add. 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 AddOp 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.