fr.paris.lutece.portal.service.template
Class AbstractMessageFormatTemplateMethod

java.lang.Object
  extended by fr.paris.lutece.portal.service.template.AbstractMessageFormatTemplateMethod
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel
Direct Known Subclasses:
DatastoreTemplateMethod, I18nTemplateMethod

public abstract class AbstractMessageFormatTemplateMethod
extends Object
implements freemarker.template.TemplateMethodModelEx


Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
AbstractMessageFormatTemplateMethod()
           
 
Method Summary
 Object exec(List arguments)
           
protected abstract  String getPattern(String key, Locale locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMessageFormatTemplateMethod

public AbstractMessageFormatTemplateMethod()
Method Detail

exec

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

getPattern

protected abstract String getPattern(String key,
                                     Locale locale)


Copyright © 2014 Mairie de Paris. All rights reserved.