public class JsonMergePatchMessage extends Object implements PatchMessage<JsonMergePatchEdit>
Constructor and Description |
---|
JsonMergePatchMessage(String documentId,
String clientId,
Queue<JsonMergePatchEdit> edits) |
Modifier and Type | Method and Description |
---|---|
String |
asJson()
Transforms this payload to a JSON String representation.
|
String |
clientId()
Identifies the client that this edit instance belongs to.
|
String |
documentId()
Identifies the document that this edit is related to
|
Queue<JsonMergePatchEdit> |
edits()
The individual
Edit s. |
JsonMergePatchMessage |
fromJson(String json)
Transforms the passed in
String JSON representation into this payloads type. |
String |
toString() |
public JsonMergePatchMessage(String documentId, String clientId, Queue<JsonMergePatchEdit> edits)
public String documentId()
PatchMessage
documentId
in interface PatchMessage<JsonMergePatchEdit>
String
the document documentId.public String clientId()
PatchMessage
clientId
in interface PatchMessage<JsonMergePatchEdit>
String
the client identifier.public Queue<JsonMergePatchEdit> edits()
PatchMessage
Edit
s.edits
in interface PatchMessage<JsonMergePatchEdit>
Queue<Edit>
the individual edits.public String asJson()
Payload
asJson
in interface Payload<PatchMessage<JsonMergePatchEdit>>
String
the payload as a JSON String representationpublic JsonMergePatchMessage fromJson(String json)
Payload
String
JSON representation into this payloads type.fromJson
in interface Payload<PatchMessage<JsonMergePatchEdit>>
json
- a string representation of this payloads typeT
an instance of this payloads typeCopyright © 2015 JBoss by Red Hat. All Rights Reserved.