TemplateModel
, TemplateScalarModel
public class ResourceBundleLocalizedString extends LocalizedString
LocalizedString
that gets
a localized string from a ResourceBundle
NOTHING
EMPTY_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) |
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