|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
java.util.Properties
planet.util.PropertiesWrapper
Field Summary |
Fields inherited from class java.util.Properties |
defaults |
Constructor Summary | |
PropertiesWrapper()
|
Method Summary | |
boolean |
getPropertyAsBoolean(java.lang.String key)
Gets the related value for the key key as a boolean value. |
java.lang.Class |
getPropertyAsClass(java.lang.String key)
Gets the related value for the key key as a Class reference. |
double |
getPropertyAsDouble(java.lang.String key)
Gets the related value for the key key as a double value. |
int |
getPropertyAsInt(java.lang.String key)
Gets the related value for the key key as an int value. |
static boolean |
getValueAsBoolean(java.lang.String value,
java.lang.String propertyName)
Gets the value as a boolean value. |
static java.lang.Class |
getValueAsClass(java.lang.String value,
java.lang.String propertyName)
Obtain the Class reference from the related value. |
static double |
getValueAsDouble(java.lang.String value,
java.lang.String propertyName)
Obtain the double value from the related value. |
static int |
getValueAsInt(java.lang.String value,
java.lang.String propertyName)
Loads the value for the propertyName as an int value. |
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PropertiesWrapper()
Method Detail |
public boolean getPropertyAsBoolean(java.lang.String key)
key
- Key to be found in this properties.
public java.lang.Class getPropertyAsClass(java.lang.String key) throws InitializationException
key
- Key to be found in this properies.
InitializationException
- if occurs any error during the loading
process.public double getPropertyAsDouble(java.lang.String key) throws InitializationException
key
- Key to be found in this properies.
InitializationException
- if occurs any error during the loading
process.public int getPropertyAsInt(java.lang.String key) throws InitializationException
key
- Key to be found in this properties.
InitializationException
- if occurs any error during the loading
process.public static boolean getValueAsBoolean(java.lang.String value, java.lang.String propertyName)
value
- Value to be converted as a boolean.propertyName
- Name of the related property (for logging purposes).
Utilities.parseBoolean(java.lang.String)
public static java.lang.Class getValueAsClass(java.lang.String value, java.lang.String propertyName) throws InitializationException
value
- Name of the class to get its reference.propertyName
- Name of the related property (for logging purposes).
InitializationException
- if any error has ocurred during the
loading process.public static double getValueAsDouble(java.lang.String value, java.lang.String propertyName) throws InitializationException
value
- A double value in string format.propertyName
- Name of the related property (for loggin purposes).
InitializationException
- if any error occurs during the
loading process.public static int getValueAsInt(java.lang.String value, java.lang.String propertyName) throws InitializationException
value
- An int value in decimal format.propertyName
- Name of the related property (for logging purposes).
InitializationException
- if appears a no numerical expression.Integer.parseInt(java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |