Class I18nBundleTemplateModel
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.i18n.freemarker.I18nBundleTemplateModel
-
- All Implemented Interfaces:
freemarker.template.TemplateHashModel,freemarker.template.TemplateModel
public class I18nBundleTemplateModel extends Object implements freemarker.template.TemplateHashModel
For Freemarker, this acts like a bundle of text strings. It is simply a wrapper around an I18nBundle.
-
-
Constructor Summary
Constructors Constructor Description I18nBundleTemplateModel(I18nBundle textBundle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description freemarker.template.TemplateModelget(String key)booleanisEmpty()
-
-
-
Constructor Detail
-
I18nBundleTemplateModel
public I18nBundleTemplateModel(I18nBundle textBundle)
-
-
Method Detail
-
get
public freemarker.template.TemplateModel get(String key) throws freemarker.template.TemplateModelException
- Specified by:
getin interfacefreemarker.template.TemplateHashModel- Throws:
freemarker.template.TemplateModelException
-
isEmpty
public boolean isEmpty() throws freemarker.template.TemplateModelException- Specified by:
isEmptyin interfacefreemarker.template.TemplateHashModel- Throws:
freemarker.template.TemplateModelException
-
-