com.ibm.ecm.json
Class JSONMessage
- java.lang.Object
- java.util.AbstractMap<K,V>
- java.util.HashMap
- com.ibm.json.java.JSONObject
- com.ibm.ecm.json.JSONMessage
All implemented interfaces:
JSONArtifact, java.io.Serializable, java.lang.Cloneable, java.util.Map
- public class JSONMessage
- extends JSONObject
Since:
2.0.2
See Also:
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary
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)
Constructs a message.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getAdminResponse()
Returns the suggested administrator response.
|
|
getExplanation()
Returns a more detailed explanation of the message.
|
|
getMoreInformation()
Returns additional detailed information, typically a list of items for which the message applies.
|
|
getNumber()
Returns the message number.
|
|
getText()
Returns the brief text of the message.
|
|
getUserResponse()
Returns the suggested user response.
|
Methods inherited from class com.ibm.json.java.JSONObject |
---|
isValidObject, isValidType, parse, parse, parse, put, serialize, serialize, serialize, serialize, serialize, serialize, toString |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail
JSONMessage
- public JSONMessage(int number,
- java.lang.String text,
- java.lang.String explanation,
- java.lang.String userResponse,
- java.lang.String adminResponse,
- java.lang.String moreInformation)
Constructs a message.
Parameters:
number
- The message number text
- The message text explanation
- A more detailed explanation userResponse
- A user response adminResponse
- An administrator response or null. moreInformation
- More information, typically with a list of items for which the message applies. Method Detail
getNumber
- public int getNumber()
Returns the message number.
getText
- public java.lang.String getText( )
Returns the brief text of the message.
getExplanation
- public java.lang.String getExplanation( )
Returns a more detailed explanation of the message.
getUserResponse
- public java.lang.String getUserResponse( )
Returns the suggested user response.
getAdminResponse
- public java.lang.String getAdminResponse( )
Returns the suggested administrator response.
getMoreInformation
- public java.lang.String getMoreInformation( )
Returns additional detailed information, typically a list of items for which the message applies.