Class 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 Detail

      • I18nBundleTemplateModel

        public I18nBundleTemplateModel​(I18nBundle textBundle)
    • Method Detail

      • get

        public freemarker.template.TemplateModel get​(String key)
                                              throws freemarker.template.TemplateModelException
        Specified by:
        get in interface freemarker.template.TemplateHashModel
        Throws:
        freemarker.template.TemplateModelException
      • isEmpty

        public boolean isEmpty()
                        throws freemarker.template.TemplateModelException
        Specified by:
        isEmpty in interface freemarker.template.TemplateHashModel
        Throws:
        freemarker.template.TemplateModelException