public class ResourceBundleLocalizedString extends LocalizedString
LocalizedString that gets
a localized string from a ResourceBundleEMPTY_STRINGNOTHING| 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) |
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