org.mmbase.util
Class LocaleLocalizedString

java.lang.Object
  extended by org.mmbase.util.LocalizedString
      extended by org.mmbase.util.WrappedLocalizedString
          extended by org.mmbase.util.ReadonlyLocalizedString
              extended by org.mmbase.util.LocaleLocalizedString
All Implemented Interfaces:
Serializable, Cloneable, PublicCloneable<LocalizedString>

public class LocaleLocalizedString
extends ReadonlyLocalizedString

This LocalizedString also has a method setLocale(java.util.Locale) which defines its own default locale for get(Locale) in case it is called as get(null).

Since:
MMBase-1.9.2
Version:
$Id: ReplacingLocalizedString.java 34936 2009-05-04 14:41:51Z michiel $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mmbase.util.WrappedLocalizedString
wrapped
 
Constructor Summary
LocaleLocalizedString(LocalizedString s)
           
 
Method Summary
 String get(Locale locale)
          Gets the value for a certain locale.
 Locale setLocale(Locale loc)
           
 
Methods inherited from class org.mmbase.util.ReadonlyLocalizedString
clone, getReadonlyLocalizedString, set, setBundle, setKey
 
Methods inherited from class org.mmbase.util.WrappedLocalizedString
asMap, equals, getBundle, getKey, getValues, hashCode
 
Methods inherited from class org.mmbase.util.LocalizedString
degrade, degrade, fillFromXml, getDebugString, getDefault, getLocale, getLocale, getXmlLang, setDefault, setXmlLang, toString, toStrings, toXml
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocaleLocalizedString

public LocaleLocalizedString(LocalizedString s)
Parameters:
s - The wrapped LocalizedString.
Method Detail

setLocale

public Locale setLocale(Locale loc)

get

public String get(Locale locale)
Description copied from class: LocalizedString
Gets the value for a certain locale. If no match is found, it falls back to the key.

Overrides:
get in class WrappedLocalizedString


MMBase 2.0-SNAPSHOT - null