Class I18NMessageMethod

All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel, org.alfresco.processor.ProcessorExtension, TemplateProcessorExtension

public class I18NMessageMethod extends BaseTemplateProcessorExtension implements freemarker.template.TemplateMethodModelEx
Author:
Kevin Roast Custom FreeMarker Template language method.

Returns an I18N message resolved for the current locale and specified message ID.

Usage: message(String id)

  • Constructor Details

    • I18NMessageMethod

      public I18NMessageMethod()
  • Method Details

    • exec

      public Object exec(List args) throws freemarker.template.TemplateModelException
      Specified by:
      exec in interface freemarker.template.TemplateMethodModel
      Specified by:
      exec in interface freemarker.template.TemplateMethodModelEx
      Throws:
      freemarker.template.TemplateModelException
      See Also:
      • TemplateMethodModel.exec(java.util.List)