|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public Localized
Read-Only interface providing methods to obtain title and description of a resource. Please note that title or description are only returned if they are available in the requested locale. No fallback for locales is performed.
| Method Summary | |
|---|---|
String[] |
getLocales()
Returns an array containing the locales that are supported by this object. |
String |
getTitle(String locale)
Returns the title of this object in the given locale. |
Object |
getTitles()
Returns the titles of this object in a map (key: locale, value: title). |
String |
getDescription(String locale)
Returns the description of this object in the given locale. |
Object |
getDescriptions(String locale)
Returns the descriptions of this object in a map (key: locale, value: description). |
| Method Detail |
|---|
String[] getLocales()
null.String getTitle(String locale)
locale -
the locale for which to retrieve the title, must not be null.
null. It is up to the invoker of the method to implement an appropriate fallback mechanism.Object getTitles()
locale -
(optional) the locale for which to retrieve the titles, can be null. If locale is null/omitted, all are returned.
String getDescription(String locale)
locale -
the locale for which to retrieve the description, must not be null.
null. It is up to the invoker of the method to implement an appropriate fallback mechanism.Object getDescriptions(String locale)
locale -
(optional) the locale for which to retrieve the descriptions, can be null. If locale is null/omitted, all are returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||