|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.template.LocalizedString freemarker.template.ResourceBundleLocalizedString
public class ResourceBundleLocalizedString
A concrete implementation of LocalizedString
that gets
a localized string from a ResourceBundle
Field Summary |
---|
Fields inherited from interface freemarker.template.TemplateScalarModel |
---|
EMPTY_STRING |
Fields inherited from interface freemarker.template.TemplateModel |
---|
NOTHING |
Constructor Summary | |
---|---|
ResourceBundleLocalizedString(java.lang.String resourceBundleLookupKey,
java.lang.String resourceKey)
|
Method Summary | |
---|---|
java.lang.String |
getLocalizedString(java.util.Locale locale)
|
Methods inherited from class freemarker.template.LocalizedString |
---|
getAsString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 bundleMethod Detail |
---|
public java.lang.String getLocalizedString(java.util.Locale locale) throws TemplateModelException
getLocalizedString
in class LocalizedString
TemplateModelException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |