|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A Service to access resource values.
| Method Summary | |
java.lang.String |
getStringValue(java.lang.String key)
Returns the resource String corresponding to the given resource key.
|
java.lang.Object |
getValue(java.lang.Class keyClass)
Returns the resource Object corresponding to the given resource key class. |
java.lang.Object |
getValue(java.lang.String key)
Returns the resource Object corresponding to the given resource key. |
java.lang.Object |
getValue(java.lang.String key,
java.util.Locale locale)
Returns the resource Object corresponding to the given resource key. |
boolean |
hasValue(java.lang.Class keyClass)
Returns true, iff there exists a resource object mapping for
The key class will be converted to it's full qualified class name,
under which the resource object must be specified. |
boolean |
hasValue(java.lang.String key)
Returns true, iff there exists a resource object mapping for
the given resource key. |
boolean |
hasValue(java.lang.String key,
java.util.Locale locale)
Returns true, iff there exists a resource object mapping for
the given resource key in the specified language. |
| Method Detail |
public boolean hasValue(java.lang.String key)
true, iff there exists a resource object mapping for
the given resource key.
key - the key to the resource object (not null)public boolean hasValue(java.lang.Class keyClass)
true, iff there exists a resource object mapping for
The key class will be converted to it's full qualified class name,
under which the resource object must be specified.
keyClass - the key class (not null)public java.lang.Object getValue(java.lang.String key)
null
will be returned.
key - the key to the resource object (not null)
null.public java.lang.String getStringValue(java.lang.String key)
String corresponding to the given resource key.
If no resource value is defined for the key, null
will be returned.
key - the key to the resource object (not null)
null.
java.lang.ClassCastException - if the resource object for the key is not a
Stringpublic java.lang.Object getValue(java.lang.Class keyClass)
keyClass - the key class (not null)
null.
public boolean hasValue(java.lang.String key,
java.util.Locale locale)
true, iff there exists a resource object mapping for
the given resource key in the specified language.
key - the key to the resource object (not null)locale - the Locale to get values for
public java.lang.Object getValue(java.lang.String key,
java.util.Locale locale)
null
will be returned.
key - the key to the resource object (not null)locale - the Locale to get values for
null.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||