|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface stores the local strings
Method Summary |
Type | Method |
---|---|
java.util.Locale |
getCurrentLocale()
Get the current locale |
java.lang.Object |
getObject(java.lang.String key)
Get an object from a local resource. |
java.lang.String |
getString(java.lang.String key)
Get the string for a given key |
java.lang.String |
getString(java.lang.String key,
boolean isMissing)
Get the string for a given key |
java.lang.String |
getString(java.lang.String key,
java.lang.String defaultValue)
Get the string for a given key |
java.lang.String[] |
getStringArray(java.lang.String key)
Get an object from a local resource. |
Method Detail |
public java.lang.String getString(java.lang.String key)
key
- the "key" string to the resource in the .properties fileString
that corresponds to the key.
This may be null
if the key was not found.public java.lang.String getString(java.lang.String key, java.lang.String defaultValue)
key
- the "key" string to the resource in the .properties filedefaultValue
- the return value in case the key is not found.String
that corresponds to the key.
If the key was not found - the default value.public java.lang.String getString(java.lang.String key, boolean isMissing)
key
- the key for the resource bundleisMissing
- if true
and the key cannot be found a default
message (in English) will be returnedString
that corresponds to the key.public java.lang.String[] getStringArray(java.lang.String key)
key
- see class description.public java.lang.Object getObject(java.lang.String key)
key
- see class description.public java.util.Locale getCurrentLocale()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |