net.sf.zekr.engine.common
Class LocalizedResource

java.lang.Object
  extended by net.sf.zekr.engine.common.LocalizedResource
Direct Known Subclasses:
AbstractQuranPagingData, RevelationData

public class LocalizedResource
extends java.lang.Object

This class can be extended by resources (like recitation, translation, revelations) in order to add localization support to their name field.

TODO: this feature is incomplete.

Author:
Mohsen Saboorian

Field Summary
protected  java.util.Map names
           
 
Constructor Summary
LocalizedResource()
           
 
Method Summary
 java.lang.String getLocalizedName()
          Cautious: this method should only be called upon instantiation of ApplicationConfig.
 java.lang.String getName(java.lang.String langCode)
           
 java.util.Map getNames()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

names

protected java.util.Map names
Constructor Detail

LocalizedResource

public LocalizedResource()
Method Detail

getNames

public java.util.Map getNames()

getName

public java.lang.String getName(java.lang.String langCode)

getLocalizedName

public java.lang.String getLocalizedName()
Cautious: this method should only be called upon instantiation of ApplicationConfig.

Returns:
localized resource name