public class ResourceBundleLocalizedString extends LocalizedString
LocalizedString
that gets
a localized string from a ResourceBundle
EMPTY_STRING
NOTHING
Constructor and Description |
---|
ResourceBundleLocalizedString(java.lang.String resourceBundleLookupKey,
java.lang.String resourceKey) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocalizedString(java.util.Locale locale) |
getAsString
public ResourceBundleLocalizedString(java.lang.String resourceBundleLookupKey, java.lang.String resourceKey)
resourceBundleLookupKey
- The lookup key for the resource bundleresourceKey
- the specific resource (assumed to be a string) to fish out of the resource bundlepublic java.lang.String getLocalizedString(java.util.Locale locale) throws TemplateModelException
getLocalizedString
in class LocalizedString
TemplateModelException