org.mmbase.util
Class ReadonlyLocalizedString

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

public class ReadonlyLocalizedString
extends WrappedLocalizedString

Extends and wraps LocalizedString, to make it readonly

Since:
MMBase-1.9.1
Version:
$Id: ReadonlyLocalizedString.java 41036 2010-02-15 22:30:54Z michiel $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mmbase.util.WrappedLocalizedString
wrapped
 
Constructor Summary
ReadonlyLocalizedString(LocalizedString s)
           
 
Method Summary
 LocalizedString clone()
           
 ReadonlyLocalizedString getReadonlyLocalizedString()
           
 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
 
Methods inherited from class org.mmbase.util.WrappedLocalizedString
asMap, equals, get, 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

ReadonlyLocalizedString

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

setKey

public void setKey(String key)
Description copied from class: LocalizedString
Sets the key to use as a default and/or for obtaining a value from the bundle

Overrides:
setKey in class WrappedLocalizedString

set

public void set(String value,
                Locale locale)
Description copied from class: LocalizedString
Sets the value for a certain locale. If the value for a more general locale is still unset, it will also set that (so, it sets also nl when setting nl_BE if nl still is unset).

Overrides:
set in class WrappedLocalizedString

setBundle

public void setBundle(String b)
Description copied from class: LocalizedString
A resource-bundle with given name can be associated to this LocalizedString. If no translations were explicitely added, it can be used to look up the translation in the bundle, using the key.

Overrides:
setBundle in class WrappedLocalizedString

clone

public LocalizedString clone()
Specified by:
clone in interface PublicCloneable<LocalizedString>
Overrides:
clone in class LocalizedString

getReadonlyLocalizedString

public ReadonlyLocalizedString getReadonlyLocalizedString()
Overrides:
getReadonlyLocalizedString in class WrappedLocalizedString


MMBase 2.0-SNAPSHOT - null