| java.lang.Object org.mmbase.util.LocalizedString org.mmbase.util.WrappedLocalizedString org.mmbase.util.ReplacingLocalizedString
ReplacingLocalizedString | public class ReplacingLocalizedString extends WrappedLocalizedString (Code) | | Extends and wraps LocalizedString. It extends to look like a 'normal' LocalizedString, but it
overrides 'get' to do token-replacements first.
This functionality is not in LocalizedString itself, because now you can have different
replacements on the same value set represented by a LocalizedString withouth having to copy
everything every time.
author: Michiel Meeuwissen version: $Id: ReplacingLocalizedString.java,v 1.6 2007/02/24 21:57:50 nklasens Exp $ since: MMBase-1.8 |
ReplacingLocalizedString | protected ReplacingLocalizedString()(Code) | | |
ReplacingLocalizedString | public ReplacingLocalizedString(LocalizedString s)(Code) | | Parameters: s - The wrapped LocalizedString. |
asMap | public Map<Locale, String> asMap()(Code) | | Also takes into account the replacements in the values (but only 'lazily', when actually requested).
|
makeLiteral | public static String makeLiteral(String s)(Code) | | Utility method for second argument of replaceAll
|
|
|