|
||||||||||
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.MessageTranslations
public class MessageTranslations
The translations of a message
Constructor Summary | |
---|---|
MessageTranslations()
|
Method Summary | |
---|---|
MessageTranslations |
addTranslation(String language,
Message message)
Adds a new translation to the map. |
Message |
getMessage(String language)
Returns a message translation for a given language. |
Map<String,Message> |
getTranslations()
Returns all the translations for the message. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MessageTranslations()
Method Detail |
---|
public MessageTranslations addTranslation(String language, Message message)
language
- the language of the translationmessage
- the message object
public Message getMessage(String language)
language
- the language of the translation
public Map<String,Message> getTranslations()
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 |