Package freemarker.template
Class ResourceBundleLocalizedString
java.lang.Object
freemarker.template.LocalizedString
freemarker.template.ResourceBundleLocalizedString
- All Implemented Interfaces:
TemplateModel
,TemplateScalarModel
A concrete implementation of
LocalizedString
that gets
a localized string from a ResourceBundle
-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
Fields inherited from interface freemarker.template.TemplateScalarModel
EMPTY_STRING
-
Constructor Summary
ConstructorDescriptionResourceBundleLocalizedString(String resourceBundleLookupKey, String resourceKey)
-
Method Summary
Methods inherited from class freemarker.template.LocalizedString
getAsString
-
Constructor Details
-
ResourceBundleLocalizedString
- Parameters:
resourceBundleLookupKey
- The lookup key for the resource bundleresourceKey
- the specific resource (assumed to be a string) to fish out of the resource bundle
-
-
Method Details
-
getLocalizedString
- Specified by:
getLocalizedString
in classLocalizedString
- Throws:
TemplateModelException
-