|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zphinx.spine.message.DisplayMessages
public class DisplayMessages
DisplayMessages is a container for a collection of messages each identified by a unique key. It serves as a repository for both DisplayMessage and DisplayError objects and returns arrays of both types of message objects.
This object contains counters which contain the following information:
Copyright ©Zphinx Software Solutions
| Constructor Summary | |
|---|---|
DisplayMessages()
Public Constructor |
|
DisplayMessages(Locale locale)
Constructs a DisplayMessages with a given locale |
|
| Method Summary | |
|---|---|
void |
add(String key,
DisplayMessage value)
Adds a message to this object, by setting a key with which the message and other messages of the same key will be saved. |
void |
add(String key,
DisplayMessage value,
Locale locale)
Adds a message to this object, by setting a key under which the message and other messages of the same key will be saved. |
void |
clear()
Clears all entries in this object |
boolean |
containsErrors()
Checks to see if any errors are stored in this object |
boolean |
containsKey(String key)
Checks to see that this key is available within this object |
boolean |
containsMessages()
Checks to see if any messages are stored in this object |
int |
errorKeySize()
Gets the size of the error keys in this collection |
String |
getAllErrorString()
Gets all the errors as a string seperated by a carriage return character |
String |
getAllMessageString()
Gets all the messages as a string seperated by a carriage return character |
DisplayError[] |
getErrors(String key)
Gets all the errors identified by the given key |
DisplayMessage[] |
getMessages(String key)
Gets all the messages identified by the given key |
boolean |
isEmpty()
Checks if this object contains any entries |
Set |
keySet()
Gets a collection of all the keys in this DisplayMessages object |
int |
messageKeySize()
Gets the size of the message keys in this collection |
boolean |
remove(String key)
Removes this key and it's value from this object |
int |
size()
Gets the size of this collection |
String |
toString()
The string representation of this object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DisplayMessages()
public DisplayMessages(Locale locale)
locale - The Locale to use for creating messages| Method Detail |
|---|
public void clear()
public boolean containsKey(String key)
key - The key to search for within this object
HashMap.containsKey(java.lang.Object)public DisplayError[] getErrors(String key)
key - The key which identifies the errors
public DisplayMessage[] getMessages(String key)
key - The key under which the message are saved
public boolean isEmpty()
public boolean containsMessages()
public boolean containsErrors()
public void add(String key,
DisplayMessage value)
key - The key by which this message is savedvalue - The message or error object to be saved
public void add(String key,
DisplayMessage value,
Locale locale)
key - The key by which this message is savedvalue - The message or error object to be savedlocale - The locale in which this message existspublic boolean remove(String key)
key - The key which we wish to remove
public int size()
public int messageKeySize()
public int errorKeySize()
public String toString()
toString in class Objectpublic Set keySet()
HashMap.keySet()public String getAllErrorString()
public String getAllMessageString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||