net.sf.zekr.engine.translation
Class Translation
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Translation
public Translation()
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)