org.enhydra.shark.util
Class ResourceManager

java.lang.Object
  extended by org.enhydra.shark.util.ResourceManager

public class ResourceManager
extends java.lang.Object

Implements the static methods used to get the multilanguage support.


Constructor Summary
ResourceManager()
           
 
Method Summary
static java.lang.String getLanguageDependentString(java.lang.String nm)
          Gets a language dependent string from the resource bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceManager

public ResourceManager()
Method Detail

getLanguageDependentString

public static java.lang.String getLanguageDependentString(java.lang.String nm)
Gets a language dependent string from the resource bundle.

Resource bundle represents the property file. For example, if property file contains something like this:

menubar=file edit help
method call getLanguageDependentString("menubar") will give the string file edit help as a result.
This method reads information from property file. If can't find desired resource, returns null.

Parameters:
nm - name of the resource to fetch.
Returns:
String value of named resource.