|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.dem.objects.messages.MessageList
public class MessageList
Represents a view message with language translations and persistence information
Constructor Summary | |
---|---|
MessageList()
|
Method Summary | |
---|---|
void |
addMessage(String id,
Message message)
Adds a message to the list. |
void |
addMessage(String id,
MessageTranslations translations)
Adds a message to the list. |
void |
addMessage(String id,
String message)
Adds a message to the list. |
void |
addMessageList(MessageList list)
Adds a message list to the list. |
void |
addMessageTranslation(String id,
String language,
Message message)
Adds a message translation to the list |
boolean |
containsMessageWithID(String messageID)
Checks if a given message is contained on the list. |
List<String> |
getMessageIDs()
Gets the list of messages IDs |
Map<String,String> |
getMessages()
Gets the list of messages and their default translation message |
Map<String,String> |
getMessages(String language)
Gets the list of messages and their default message translation to the given language |
MessageTranslations |
getMessageTranslations(String id)
Gets the translations for a given message |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MessageList()
Method Detail |
---|
public void addMessage(String id, Message message)
id
- the message idmessage
- the messagepublic void addMessage(String id, MessageTranslations translations)
id
- the message idtranslations
- the translations listpublic void addMessage(String id, String message)
id
- the message idmessage
- the messagepublic void addMessageList(MessageList list)
list
- the list of message translations to addpublic void addMessageTranslation(String id, String language, Message message)
id
- language
- message
- public boolean containsMessageWithID(String messageID)
messageID
- the message ID
public List<String> getMessageIDs()
public Map<String,String> getMessages()
public Map<String,String> getMessages(String language)
language
- the language desired
public MessageTranslations getMessageTranslations(String id)
id
- the id of the message to search
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |