|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.javaWebGen.util.PropertiesReader
public class PropertiesReader
class reads messages from a resource bundle or config properties
Method Summary | |
---|---|
boolean |
getBooleanValue(java.lang.String key)
Returns a value from the StringBundle they matches the key value |
double |
getDoubleValue(java.lang.String key)
Returns a value from the StringBundle they matches the key value |
java.lang.String |
getFormattedMessage(java.lang.String key)
Returns a value from the StringBundle they matches the key value |
java.lang.String |
getFormattedMessage(java.lang.String key,
java.lang.Object[] parms)
Returns a value from the StringBundle that matches the key value |
java.lang.String |
getFormattedMessage(java.lang.String key,
java.lang.String parm)
Returns a value from the StringBundle they matches the key value will also substitute {} with values in a Object Array |
java.lang.String |
getFormattedMessage(java.lang.String key,
java.lang.String parm1,
java.lang.String parm2)
Returns a value from the StringBundle they matches the key value will also substitute {} with values in a Object Array |
java.lang.String |
getFormattedMessage(java.lang.String key,
java.lang.String parm1,
java.lang.String parm2,
java.lang.String parm3)
Returns a value from the StringBundle they matches the key value will also substitute {} with values in a Object Array |
long |
getLongValue(java.lang.String key)
Returns a value from the StringBundle they matches the key value |
java.lang.String |
getName()
|
java.lang.String |
getProperty(java.lang.String key)
Returns a value a value from the StringBundle that matches the key value this method is used to get configuration values as opposed to messages like the getMessage method it does not try to format the value returned in any way |
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Returns a value a value from the StringBundle that matches the key value this method is used to get configuration values as opposed to messages like the getMessage method it does not try to format the value returned in any way |
static PropertiesReader |
getReader(java.io.File propertiesFile)
get a propertiesReader using a file object pointing to a valid file |
static PropertiesReader |
getReader(java.lang.String bundleName)
get a propertiesReader using a resourse bundle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PropertiesReader getReader(java.io.File propertiesFile) throws java.io.IOException
propertiesFile
- file object of a valid properties file
java.io.IOException
public static PropertiesReader getReader(java.lang.String bundleName) throws java.util.MissingResourceException
bundleName
- name of the resouce bundle
java.util.MissingResourceException
public java.lang.String getName()
public boolean getBooleanValue(java.lang.String key) throws java.lang.NumberFormatException
key
- key to look for in the String Bungle
java.lang.NumberFormatException
public double getDoubleValue(java.lang.String key) throws java.lang.NumberFormatException
key
- key to look for in the String Bundle
java.lang.NumberFormatException
public long getLongValue(java.lang.String key) throws java.lang.NumberFormatException
key
- key to look for in the String Bungle
java.lang.NumberFormatException
public java.lang.String getFormattedMessage(java.lang.String key)
key
- key to look for in the String Bungle
public java.lang.String getFormattedMessage(java.lang.String key, java.lang.String parm)
key
- key to look for in the String Bungle
MessageFormat
public java.lang.String getFormattedMessage(java.lang.String key, java.lang.String parm1, java.lang.String parm2)
key
- key to look for in the String Bungle
MessageFormat
public java.lang.String getFormattedMessage(java.lang.String key, java.lang.String parm1, java.lang.String parm2, java.lang.String parm3)
key
- key to look for in the String Bungle
MessageFormat
public java.lang.String getFormattedMessage(java.lang.String key, java.lang.Object[] parms)
key
- key to look for in the String Bungle
public java.lang.String getProperty(java.lang.String key)
key
- key to look for in the String Bungle
public java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
key
- key to look for in the String BungledefaultValue
- value if not found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |