sg.edu.nus.peer
Class LanguageLoader

java.lang.Object
  extended by sg.edu.nus.peer.LanguageLoader

public abstract class LanguageLoader
extends java.lang.Object

This class defines a factory method to initiate language-specific strings used by system.

Version:
1.0 2007-7-2
Author:
Xu Linhao

Field Summary
static int chinese
           
static int english
           
static int locale
           
 
Constructor Summary
LanguageLoader()
           
 
Method Summary
static java.lang.String getProperty(java.lang.String key)
          Searches for the property with the specified key in this property list.
static void newLanguageLoader(int lan)
          Initate a system property with the specified language, and system can get the property value with the corresponding property key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

english

public static final int english
See Also:
Constant Field Values

chinese

public static final int chinese
See Also:
Constant Field Values

locale

public static int locale
Constructor Detail

LanguageLoader

public LanguageLoader()
Method Detail

newLanguageLoader

public static void newLanguageLoader(int lan)
Initate a system property with the specified language, and system can get the property value with the corresponding property key.

Parameters:
lan - the language option

getProperty

public static java.lang.String getProperty(java.lang.String key)
Searches for the property with the specified key in this property list. The method returns null if the property is not found.

Parameters:
key - the property key
Returns:
returns the value in this property list with the specified key value