public abstract class JsonWrapper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY_JSON
The String representation of an empty message in JSON.
|
| Constructor and Description |
|---|
JsonWrapper()
Create a new, empty JSON object.
|
JsonWrapper(javax.json.JsonObject jsonObject)
Create a Message based on the given JSON object.
|
JsonWrapper(String jsonString)
Create a JSON object based on the given String representation of a JSON
object.
|
| Modifier and Type | Method and Description |
|---|---|
abstract JsonWrapper |
clone()
Create a clone of this JSON object.
|
boolean |
equals(Object o)
Test if the given Object is equal to this JsonWrapper.
|
int |
hashCode()
Return the hash code of this JSON object, which is the hash code of the
JSON string.
|
javax.json.JsonObject |
toJsonObject()
Get the JSON object.
|
String |
toString()
Get the String representation of this JSON object in JSON format.
|
public static final String EMPTY_JSON
public JsonWrapper()
public JsonWrapper(String jsonString)
json - The JSON String to parse.public JsonWrapper(javax.json.JsonObject jsonObject)
jsonObject - The JSON object containing the message data.public javax.json.JsonObject toJsonObject()
public String toString()
public abstract JsonWrapper clone()
public int hashCode()
public boolean equals(Object o)
Copyright © 2014. All rights reserved.