Package 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 ofLocalizedStringthat gets a localized string from aResourceBundle
-
-
Field Summary
-
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Fields inherited from interface freemarker.template.TemplateScalarModel
EMPTY_STRING
-
-
Constructor Summary
Constructors Constructor Description ResourceBundleLocalizedString(String resourceBundleLookupKey, String resourceKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLocalizedString(Locale locale)-
Methods inherited from class freemarker.template.LocalizedString
getAsString
-
-
-
-
Method Detail
-
getLocalizedString
public String getLocalizedString(Locale locale) throws TemplateModelException
- Specified by:
getLocalizedStringin classLocalizedString- Throws:
TemplateModelException
-
-