TemplateModel, TemplateScalarModelpublic class ResourceBundleLocalizedString extends LocalizedString
LocalizedString that gets
a localized string from a ResourceBundleNOTHINGEMPTY_STRING| Constructor | Description |
|---|---|
ResourceBundleLocalizedString(java.lang.String resourceBundleLookupKey,
java.lang.String resourceKey) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getLocalizedString(java.util.Locale locale) |
getAsStringpublic 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 LocalizedStringTemplateModelException