freemarker.template
Class ResourceBundleLocalizedString
java.lang.Object
freemarker.template.LocalizedString
freemarker.template.ResourceBundleLocalizedString
- All Implemented Interfaces:
- TemplateModel, TemplateScalarModel
public class ResourceBundleLocalizedString
- extends LocalizedString
A concrete implementation of LocalizedString
that gets
a localized string from a ResourceBundle
- Author:
- Jonathan Revusky
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceBundleLocalizedString
public ResourceBundleLocalizedString(String resourceBundleLookupKey,
String resourceKey)
- Parameters:
resourceBundleLookupKey
- The lookup key for the resource bundleresourceKey
- the specific resource (assumed to be a string) to fish out of the resource bundle
getLocalizedString
public String getLocalizedString(Locale locale)
throws TemplateModelException
- Specified by:
getLocalizedString
in class LocalizedString
- Throws:
TemplateModelException