|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pushtotest.testmaker.resources.PropertyFinder
public class PropertyFinder
This is a simple wrapper around a ResourceBundle that simplifies loading it and getting a value from it. Mainly used so that we can pre-load them and cache them for static access.
| Constructor Summary | |
|---|---|
PropertyFinder(java.lang.String resourceBundle)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
getBoolean(java.lang.String key,
boolean defValue)
Looks up a key in the ResourceBundle and finds the value associated with it. |
double |
getDouble(java.lang.String key,
double defValue)
Looks up a key in the ResourceBundle and finds the value associated with it. |
int |
getInt(java.lang.String key,
int defValue)
Looks up a key in the ResourceBundle and finds the value associated with it. |
java.util.Enumeration |
getKeys()
Returns an enumeration of all the keys in this Bundle. |
java.util.Locale |
getLocale()
Return the Locale for this ResourceBundle. |
long |
getLong(java.lang.String key,
long defValue)
Looks up a key in the ResourceBundle and finds the value associated with it. |
java.lang.String |
getString(java.lang.String key)
Looks up a key in the ResourceBundle and finds the value associated with it. |
java.lang.String |
getString(java.lang.String key,
java.lang.String defValue)
Looks up a key in the ResourceBundle and finds the value associated with it. |
java.lang.String[] |
getStringArray(java.lang.String key,
java.lang.String[] defValue)
This method is used to retrieve a multi-valued property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyFinder(java.lang.String resourceBundle)
resourceBundle - The properties file that you want to load.| Method Detail |
|---|
public java.util.Enumeration getKeys()
public java.util.Locale getLocale()
public java.lang.String getString(java.lang.String key,
java.lang.String defValue)
key - The key that you want to look up.defValue - The default value to return if that key is not found.
public java.lang.String getString(java.lang.String key)
key - The key that you want to look up.
public java.lang.String[] getStringArray(java.lang.String key,
java.lang.String[] defValue)
property=value,value2.
key - The key that holds the values you want.defValue - The default values in case the key is not found.
public int getInt(java.lang.String key,
int defValue)
key - The key that you want to look up.defValue - The default value to return if that key is not found.
public long getLong(java.lang.String key,
long defValue)
key - The key that you want to look up.defValue - The default value to return if that key is not found.
public double getDouble(java.lang.String key,
double defValue)
key - The key that you want to look up.defValue - The default value to return if that key is not found.
public boolean getBoolean(java.lang.String key,
boolean defValue)
key - The key that you want to look up.defValue - The default value to return if that key is not found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||