|
BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--java.util.Properties
|
+--com.beasys.util.TypedProperties
Extension of properties class to return typed versions of your properties.
| Fields inherited from class java.util.Properties |
defaults |
| Constructor Summary | |
TypedProperties()
Default constructor. |
|
| Method Summary | |
java.lang.String[] |
getPropertyAsArray(java.lang.String aPropertyName)
If a property has a comma separated list, this method will parse it into a String array. |
boolean |
getPropertyAsBool(java.lang.String aPropertyName)
Get a boolean property value. |
boolean |
getPropertyAsBool(java.lang.String aPropertyName,
boolean def)
Get a boolean property value. |
double |
getPropertyAsDouble(java.lang.String aPropertyName)
Get the property as a double value. |
float |
getPropertyAsFloat(java.lang.String aPropertyName)
Get the property as a float value. |
double |
getPropertyAsFloat(java.lang.String aPropertyName,
double def)
Get the property as a double value. |
float |
getPropertyAsFloat(java.lang.String aPropertyName,
float def)
Get the property as a float value. |
int |
getPropertyAsInt(java.lang.String aPropertyName)
Look for a property and return it as an int. |
int |
getPropertyAsInt(java.lang.String aPropertyName,
int def)
Look for a property and return it as an int. |
long |
getPropertyAsLong(java.lang.String aPropertyName)
Get the property as a long value. |
long |
getPropertyAsLong(java.lang.String aPropertyName,
long def)
Get the property as a long value. |
java.lang.String |
getPropertyAsString(java.lang.String aPropertyName)
Just does getProperty. |
int |
getPropertyHexAsInt(java.lang.String aPropertyName)
Return a hex representation of a number as a base 10 int. |
int |
getPropertyHexAsInt(java.lang.String aPropertyName,
int def)
Return a hex representation of a number as a base 10 int. |
| 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 TypedProperties()
| Method Detail |
public int getPropertyAsInt(java.lang.String aPropertyName,
int def)
aPropertyName - the property name.def - the default int value if the property is not found.public int getPropertyAsInt(java.lang.String aPropertyName)
aPropertyName - the property name.
public int getPropertyHexAsInt(java.lang.String aPropertyName,
int def)
aPropertyName - the property name to look for.def - the default value.public int getPropertyHexAsInt(java.lang.String aPropertyName)
aPropertyName - the property name to look for.
public long getPropertyAsLong(java.lang.String aPropertyName,
long def)
aPropertyName - the property name.def - the default value.public long getPropertyAsLong(java.lang.String aPropertyName)
aPropertyName - the property name.
public float getPropertyAsFloat(java.lang.String aPropertyName,
float def)
aPropertyName - the property name.def - the default value.public float getPropertyAsFloat(java.lang.String aPropertyName)
aPropertyName - the property name.
public double getPropertyAsFloat(java.lang.String aPropertyName,
double def)
aPropertyName - the property name.def - the default value.public double getPropertyAsDouble(java.lang.String aPropertyName)
aPropertyName - the property name.public java.lang.String getPropertyAsString(java.lang.String aPropertyName)
aPropertyName - the property name.
public boolean getPropertyAsBool(java.lang.String aPropertyName,
boolean def)
aPropertyName - the property namedef - the default valuepublic boolean getPropertyAsBool(java.lang.String aPropertyName)
aPropertyName - the property namepublic java.lang.String[] getPropertyAsArray(java.lang.String aPropertyName)
String - the property name.
|
BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||