Home » freemarker-2.3.13 » freemarker.template » [javadoc | source]
freemarker.template
abstract public class: LocalizedString [javadoc | source]
java.lang.Object
   freemarker.template.LocalizedString

All Implemented Interfaces:
    TemplateScalarModel

Direct Known Subclasses:
    ResourceBundleLocalizedString

An abstract base class for scalars that vary by locale. Here is a silly usage example. TemplateScalarModel localizedYes = new LocalizedString() { public String getLocalizedString(java.util.Locale locale) { String lang = locale.getLanguage(); if "fr".equals(lang) return "oui"; else if "de".equals(lang) return "s�"; else return "yes"; } };
Method from freemarker.template.LocalizedString Summary:
getAsString,   getLocalizedString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from freemarker.template.LocalizedString Detail:
 public String getAsString() throws TemplateModelException 
 abstract public String getLocalizedString(Locale locale) throws TemplateModelException