|
NextApp Echo App Container 1.0.5 |
|||||||||
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.
Nested Class Summary |
Nested classes inherited from class java.util.HashMap |
|
Nested classes inherited from class java.util.AbstractMap |
|
Field Summary |
Fields inherited from class java.util.HashMap |
|
Fields inherited from class java.util.AbstractMap |
|
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 . |
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
.
|
NextApp Echo App Container 1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |