public class JSONMessage
extends com.ibm.json.java.JSONObject
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADMIN_RESPONSE |
static java.lang.String |
EXPLANATION |
static java.lang.String |
FOOTER |
static java.lang.String |
MORE_INFORMATION |
static java.lang.String |
NUMBER |
static java.lang.String |
TEXT |
static java.lang.String |
USER_RESPONSE |
| Constructor and Description |
|---|
JSONMessage(int number,
java.lang.String text,
java.lang.String explanation,
java.lang.String userResponse,
java.lang.String adminResponse,
java.lang.String moreInformation) |
JSONMessage(int number,
java.lang.String text,
java.lang.String explanation,
java.lang.String userResponse,
java.lang.String adminResponse,
java.lang.String moreInformation,
java.lang.String footer)
Constructs a message.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAdminResponse()
Returns the suggested administrator response.
|
java.lang.String |
getExplanation()
Returns a more detailed explanation of the message.
|
java.lang.String |
getFooter()
Returns the message footer.
|
java.lang.String |
getMoreInformation()
Returns additional detailed information, typically a list of items for which the message applies.
|
int |
getNumber()
Returns the message number.
|
java.lang.String |
getText()
Returns the brief text of the message.
|
java.lang.String |
getUserResponse()
Returns the suggested user response.
|
isValidObject, isValidType, parse, parse, parse, put, serialize, serialize, serialize, serialize, serialize, serialize, toStringclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic static final java.lang.String NUMBER
public static final java.lang.String TEXT
public static final java.lang.String EXPLANATION
public static final java.lang.String USER_RESPONSE
public static final java.lang.String ADMIN_RESPONSE
public static final java.lang.String MORE_INFORMATION
public static final java.lang.String FOOTER
public JSONMessage(int number,
java.lang.String text,
java.lang.String explanation,
java.lang.String userResponse,
java.lang.String adminResponse,
java.lang.String moreInformation,
java.lang.String footer)
number - The message numbertext - The message textexplanation - A more detailed explanationuserResponse - A user responseadminResponse - An administrator response or null.moreInformation - More information, typically with a list of items for which the message applies.footer - A footerpublic JSONMessage(int number,
java.lang.String text,
java.lang.String explanation,
java.lang.String userResponse,
java.lang.String adminResponse,
java.lang.String moreInformation)
public int getNumber()
public java.lang.String getText()
public java.lang.String getExplanation()
public java.lang.String getUserResponse()
public java.lang.String getAdminResponse()
public java.lang.String getMoreInformation()
public java.lang.String getFooter()