org.thymeleaf.util
Class MessageResolutionUtils

Object
  extended by org.thymeleaf.util.MessageResolutionUtils

public final class MessageResolutionUtils
extends Object

Since:
1.0
Author:
Daniel Fernández, Guven Demir

Method Summary
static String getAbsentMessageRepresentation(String messageKey, Locale locale)
           
static Properties loadCombinedMessagesFilesFromBaseName(Arguments arguments, IResourceResolver resourceResolver, String baseName, Locale locale, Properties defaultMessages)
           
static String resolveMessageForClass(Class<?> targetClass, Locale locale, String messageKey, Object[] messageParameters)
           
static String resolveMessageForClass(Class<?> targetClass, Locale locale, String messageKey, Object[] messageParameters, boolean returnStringAlways)
           
static String resolveMessageForTemplate(Arguments arguments, TemplateResolution templateResolution, String messageKey, Object[] messageParameters)
           
static String resolveMessageForTemplate(Arguments arguments, TemplateResolution templateResolution, String messageKey, Object[] messageParameters, boolean returnStringAlways)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

resolveMessageForTemplate

public static String resolveMessageForTemplate(Arguments arguments,
                                               TemplateResolution templateResolution,
                                               String messageKey,
                                               Object[] messageParameters)

resolveMessageForTemplate

public static String resolveMessageForTemplate(Arguments arguments,
                                               TemplateResolution templateResolution,
                                               String messageKey,
                                               Object[] messageParameters,
                                               boolean returnStringAlways)

resolveMessageForClass

public static String resolveMessageForClass(Class<?> targetClass,
                                            Locale locale,
                                            String messageKey,
                                            Object[] messageParameters)

resolveMessageForClass

public static String resolveMessageForClass(Class<?> targetClass,
                                            Locale locale,
                                            String messageKey,
                                            Object[] messageParameters,
                                            boolean returnStringAlways)

getAbsentMessageRepresentation

public static String getAbsentMessageRepresentation(String messageKey,
                                                    Locale locale)

loadCombinedMessagesFilesFromBaseName

public static Properties loadCombinedMessagesFilesFromBaseName(Arguments arguments,
                                                               IResourceResolver resourceResolver,
                                                               String baseName,
                                                               Locale locale,
                                                               Properties defaultMessages)


Copyright © 2012 The THYMELEAF team. All Rights Reserved.