public abstract class WrappedLocalizedString extends LocalizedString
| Modifier and Type | Field and Description |
|---|---|
protected LocalizedString |
wrapped |
| Modifier | Constructor and Description |
|---|---|
protected |
WrappedLocalizedString(LocalizedString s) |
| Modifier and Type | Method and Description |
|---|---|
Map<Locale,String> |
asMap()
Returns a Map representation of the localisation setting represented by this
LocalizedString.
|
boolean |
equals(Object o) |
String |
get(Locale locale)
Gets the value for a certain locale.
|
protected String |
getBundle() |
String |
getKey()
Gets the key to use as a default and/or for obtaining a value from the bundle
|
ReadonlyLocalizedString |
getReadonlyLocalizedString() |
protected Map<Locale,String> |
getValues() |
int |
hashCode() |
void |
set(String value,
Locale locale)
Sets the value for a certain locale.
|
void |
setBundle(String b)
A resource-bundle with given name can be associated to this LocalizedString.
|
void |
setKey(String key)
Sets the key to use as a default and/or for obtaining a value from the bundle
|
clone, degrade, degrade, fillFromXml, getDebugString, getDefault, getLocale, getLocale, getXmlLang, setDefault, setXmlLang, toString, toStrings, toXmlprotected final LocalizedString wrapped
protected WrappedLocalizedString(LocalizedString s)
s - The wrapped LocalizedString.public String getKey()
LocalizedStringgetKey in class LocalizedStringpublic void setKey(String key)
LocalizedStringsetKey in class LocalizedStringpublic String get(Locale locale)
LocalizedStringget in class LocalizedStringpublic void set(String value, Locale locale)
LocalizedStringset in class LocalizedStringpublic Map<Locale,String> asMap()
LocalizedStringasMap in class LocalizedStringpublic void setBundle(String b)
LocalizedStringsetBundle in class LocalizedStringprotected String getBundle()
getBundle in class LocalizedStringprotected Map<Locale,String> getValues()
getValues in class LocalizedStringpublic boolean equals(Object o)
equals in class LocalizedStringpublic int hashCode()
hashCode in class LocalizedStringpublic ReadonlyLocalizedString getReadonlyLocalizedString()
getReadonlyLocalizedString in class LocalizedStringMMBase 1.9-SNAPSHOT - ${javadoctimestamp}