| java.lang.Object com.salmonllc.localizer.Localizer
All known Subclasses: com.salmonllc.localizer.DBLocalizer, com.salmonllc.localizer.PropertiesLocalizer,
Localizer | abstract public class Localizer (Code) | | This class is the base class for all localizers in the framework. A localizer is a class used to load resources for a particular language and applicaton
|
Constructor Summary | |
public | Localizer(boolean sortRequired) Creates a new Localizer object. | public | Localizer(boolean sortRequired, boolean translateEscapes) Creates a new Localizer object. |
Localizer | public Localizer(boolean sortRequired)(Code) | | Creates a new Localizer object. If elements added to the list will be sorted, pass a false as sortRequired and this will allow the class to skip the sorting step before searching for the first resource.
|
Localizer | public Localizer(boolean sortRequired, boolean translateEscapes)(Code) | | Creates a new Localizer object. If elements added to the list will be sorted, pass a false as sortRequired and this will allow the class to skip the sorting step before searching for the first resource. You can also control whether or not escape sequences are translated to unicode characters with the translateEscapes flag (default = false).
|
addValue | protected synchronized void addValue(String key, String value)(Code) | | Adds a value to the list
|
getKeys | public synchronized Enumeration getKeys()(Code) | | Returns an enumeration of keys in the list
|
getResource | public String getResource(String key)(Code) | | Returns the value at the specified key or null if no value is found
|
getResources | public synchronized Enumeration getResources()(Code) | | Returns an enumeration of resources in the list
|
getSize | public int getSize()(Code) | | Returns the number of resources in the localizer
|
loadData | abstract protected boolean loadData(String appName, String language)(Code) | | This method must be implemented by subclasses of the Localizer to load the data for one application and language
|
|
|