|
NextApp Echo App Container 1.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap java.util.HashMap nextapp.echoservlet.util.PropertyMap
A Map
that is generated from a properties file.
This class provides additional methods for returning properties
as String
s or arrays of String
s.
Constructor Summary | |
PropertyMap(java.lang.String resourceName)
Create a PropertyMap |
Method Summary | |
boolean |
getBoolean(java.lang.String key)
Returns true if the value identified by key is equal
to ""1"". |
int |
getInteger(java.lang.String key)
Returns the value identified by key as an
int if it the value is numeric. |
java.lang.String |
getString(java.lang.String key)
Returns the value identified by key as a
String if it is one, otherwise throws a
ClassCastException . |
void |
putBoolean(java.lang.String key,
boolean value)
Puts a boolean value. |
void |
putInteger(java.lang.String key,
int value)
Puts a integer value. |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
Constructor Detail |
public PropertyMap(java.lang.String resourceName)
PropertyMap
resourceName
- The name of the properties file to load.Method Detail |
public boolean getBoolean(java.lang.String key)
key
is equal
to ""1"".
key
- the name of the property to return.
public int getInteger(java.lang.String key)
key
as an
int if it the value is numeric. Zero is returned if the
value is null or otherwise not numeric.
key
- the name of the property to return.
public java.lang.String getString(java.lang.String key)
key
as a
String
if it is one, otherwise throws a
ClassCastException
.
key
- The name of the property to return.
key
as a String
.public void putBoolean(java.lang.String key, boolean value)
key
- The key of the property to be set.value
- The new value of the propert.public void putInteger(java.lang.String key, int value)
key
- The key of the property to be set.value
- The new value of the propert.
|
NextApp Echo App Container 1.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |