com.ds.fw.resources
Class FwResourceTable

java.lang.Object
  |
  +--com.ds.fw.resources.FwResourceTable

public class FwResourceTable
extends java.lang.Object

This class represents a resource table as a hashtable.


Field Summary
static boolean DEBUG_NOT_FOUND
           
 
Constructor Summary
FwResourceTable()
           
 
Method Summary
static java.lang.Object get(java.lang.String inKey, java.lang.Object inDefault, int inCategory, java.util.Locale inLocale)
          Gets a property value.
static java.lang.String getString(java.lang.String inKey, java.lang.Object inDefault, int inCategory)
          Gets a property value as a string.
static java.lang.String getString(java.lang.String inKey, java.lang.Object inDefault, int inCategory, java.util.Locale inLocale)
          Gets a property value as a string.
static java.lang.String getString(java.lang.String inKey, java.lang.Object inDefault, java.util.Locale inLocale)
          Gets a property value as a string.
static java.lang.String[] getStringArray(java.lang.String inKey, int inCategory, java.util.Locale inLocale)
          This method extracts string array from a property file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG_NOT_FOUND

public static boolean DEBUG_NOT_FOUND
Constructor Detail

FwResourceTable

public FwResourceTable()
Method Detail

get

public static java.lang.Object get(java.lang.String inKey,
                                   java.lang.Object inDefault,
                                   int inCategory,
                                   java.util.Locale inLocale)
Gets a property value.

Parameters:
inKey - property key
inDefault - default value which will be returned if none is found
inCategory - category of the property
inLocale - locale
Returns:
property value

getString

public static java.lang.String getString(java.lang.String inKey,
                                         java.lang.Object inDefault,
                                         int inCategory,
                                         java.util.Locale inLocale)
Gets a property value as a string.

Parameters:
inKey - property value
inDefault - default value which will be returned if none is found
inCategory - category of the property
inLocale - locale
Returns:
property value

getString

public static java.lang.String getString(java.lang.String inKey,
                                         java.lang.Object inDefault,
                                         java.util.Locale inLocale)
Gets a property value as a string.

See Also:
#getString(String,Object,inCategory,inLocale)

getString

public static java.lang.String getString(java.lang.String inKey,
                                         java.lang.Object inDefault,
                                         int inCategory)
Gets a property value as a string.

See Also:
#getString(String,Object,inCategory,inLocale)

getStringArray

public static java.lang.String[] getStringArray(java.lang.String inKey,
                                                int inCategory,
                                                java.util.Locale inLocale)
This method extracts string array from a property file.