net.sf.zekr.engine.translation
Class Translation

java.lang.Object
  extended by net.sf.zekr.engine.translation.Translation

public class Translation
extends java.lang.Object

A collection of all available translations as TranslationData objects.
If this class had at least a single TranslationData, it should be set as default translation as well. No default translation means, there is no translation at all.

Author:
Mohsen Saboorian

Constructor Summary
Translation()
           
 
Method Summary
 void add(TranslationData td)
           
 TranslationData get(java.lang.String transId)
           
 java.util.List getAllTranslation()
           
 java.util.List getCustomGroup()
           
 TranslationData getDefault()
           
 void setCustomGroup(java.util.List customGroup)
           
 void setDefault(TranslationData defaultTrans)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Translation

public Translation()
Method Detail

getDefault

public TranslationData getDefault()
Returns:
default translation, or null if there is translation at all.

setDefault

public void setDefault(TranslationData defaultTrans)

get

public TranslationData get(java.lang.String transId)

add

public void add(TranslationData td)

getAllTranslation

public java.util.List getAllTranslation()
Returns:
a sorted collection representation of translations. Changing this list may not affect on the underling translation list. Returned list is not empty (size = 0, not null) if there is no translation data item.

getCustomGroup

public java.util.List getCustomGroup()
Returns:
a List of custom translations currently being used. Custom translations are a set of translations all displayed side by side.

setCustomGroup

public void setCustomGroup(java.util.List customGroup)