pt.digitalis.dif.dem.objects.messages
Class MessageTranslations

java.lang.Object
  extended by pt.digitalis.dif.dem.objects.messages.MessageTranslations

public class MessageTranslations
extends Object

The translations of a message

Author:
Pedro Viegas pviegas@digitalis.pt
, Rodrigo Gonçalves rgoncalves@digitalis.pt
Created on:
Nov 2, 2007

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

MessageTranslations

public MessageTranslations()
Method Detail

addTranslation

public MessageTranslations addTranslation(String language,
                                          Message message)
Adds a new translation to the map.

Parameters:
language - the language of the translation
message - the message object
Returns:
the updated object

getMessage

public Message getMessage(String language)
Returns a message translation for a given language.

Parameters:
language - the language of the translation
Returns:
the message of the given language

getTranslations

public Map<String,Message> getTranslations()
Returns all the translations for the message.

Returns:
the message translations

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.