Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.rendering.fm.extensions
Class LocaleMessagesMethod

java.lang.Object
  extended by org.nuxeo.ecm.platform.rendering.fm.extensions.LocaleMessagesMethod
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

public class LocaleMessagesMethod
extends java.lang.Object
implements freemarker.template.TemplateMethodModelEx

Message method that differs from the standard one as its second argument is the locale.

Author:
Bogdan Stefanescu, Sun Seng David TAN

Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
LocaleMessagesMethod(ResourceComposite bundle)
           
 
Method Summary
 java.lang.Object exec(java.util.List arguments)
           
 ResourceComposite getBundle()
           
 void setBundle(ResourceComposite bundle)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleMessagesMethod

public LocaleMessagesMethod(ResourceComposite bundle)
Method Detail

setBundle

public void setBundle(ResourceComposite bundle)

getBundle

public ResourceComposite getBundle()

exec

public java.lang.Object exec(java.util.List arguments)
                      throws freemarker.template.TemplateModelException
Specified by:
exec in interface freemarker.template.TemplateMethodModel
Throws:
freemarker.template.TemplateModelException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.