public class Messages extends Object
Expression Object for retrieving externalized/internationalized messages from inside Thymeleaf Standard Expressions.
An object of this class is usually available in variable evaluation expressions with the name #messages.
Constructor and Description |
---|
Messages(ITemplateContext context) |
Modifier and Type | Method and Description |
---|---|
String[] |
arrayMsg(Object[] messageKeys) |
String[] |
arrayMsg(Object[] messageKeys,
Object messageParameter0) |
String[] |
arrayMsg(Object[] messageKeys,
Object messageParameter0,
Object messageParameter1) |
String[] |
arrayMsg(Object[] messageKeys,
Object messageParameter0,
Object messageParameter1,
Object messageParameter2) |
String[] |
arrayMsgOrNull(Object[] messageKeys) |
String[] |
arrayMsgOrNull(Object[] messageKeys,
Object messageParameter0) |
String[] |
arrayMsgOrNull(Object[] messageKeys,
Object messageParameter0,
Object messageParameter1) |
String[] |
arrayMsgOrNull(Object[] messageKeys,
Object messageParameter0,
Object messageParameter1,
Object messageParameter2) |
String[] |
arrayMsgOrNullWithParams(Object[] messageKeys,
Object[] messageParameters) |
String[] |
arrayMsgWithParams(Object[] messageKeys,
Object[] messageParameters) |
List<String> |
listMsg(List<String> messageKeys) |
List<String> |
listMsg(List<String> messageKeys,
Object messageParameter0) |
List<String> |
listMsg(List<String> messageKeys,
Object messageParameter0,
Object messageParameter1) |
List<String> |
listMsg(List<String> messageKeys,
Object messageParameter0,
Object messageParameter1,
Object messageParameter2) |
List<String> |
listMsgOrNull(List<String> messageKeys) |
List<String> |
listMsgOrNull(List<String> messageKeys,
Object messageParameter0) |
List<String> |
listMsgOrNull(List<String> messageKeys,
Object messageParameter0,
Object messageParameter1) |
List<String> |
listMsgOrNull(List<String> messageKeys,
Object messageParameter0,
Object messageParameter1,
Object messageParameter2) |
List<String> |
listMsgOrNullWithParams(List<String> messageKeys,
Object[] messageParameters) |
List<String> |
listMsgWithParams(List<String> messageKeys,
Object[] messageParameters) |
String |
msg(String messageKey) |
String |
msg(String messageKey,
Object messageParameter0) |
String |
msg(String messageKey,
Object messageParameter0,
Object messageParameter1) |
String |
msg(String messageKey,
Object messageParameter0,
Object messageParameter1,
Object messageParameter2) |
String |
msgOrNull(String messageKey) |
String |
msgOrNull(String messageKey,
Object messageParameter0) |
String |
msgOrNull(String messageKey,
Object messageParameter0,
Object messageParameter1) |
String |
msgOrNull(String messageKey,
Object messageParameter0,
Object messageParameter1,
Object messageParameter2) |
String |
msgOrNullWithParams(String messageKey,
Object[] messageParameters) |
String |
msgWithParams(String messageKey,
Object[] messageParameters) |
Set<String> |
setMsg(Set<String> messageKeys) |
Set<String> |
setMsg(Set<String> messageKeys,
Object messageParameter0) |
Set<String> |
setMsg(Set<String> messageKeys,
Object messageParameter0,
Object messageParameter1) |
Set<String> |
setMsg(Set<String> messageKeys,
Object messageParameter0,
Object messageParameter1,
Object messageParameter2) |
Set<String> |
setMsgOrNull(Set<String> messageKeys) |
Set<String> |
setMsgOrNull(Set<String> messageKeys,
Object messageParameter0) |
Set<String> |
setMsgOrNull(Set<String> messageKeys,
Object messageParameter0,
Object messageParameter1) |
Set<String> |
setMsgOrNull(Set<String> messageKeys,
Object messageParameter0,
Object messageParameter1,
Object messageParameter2) |
Set<String> |
setMsgOrNullWithParams(Set<String> messageKeys,
Object[] messageParameters) |
Set<String> |
setMsgWithParams(Set<String> messageKeys,
Object[] messageParameters) |
public Messages(ITemplateContext context)
public String msg(String messageKey, Object messageParameter0, Object messageParameter1, Object messageParameter2)
public String msgOrNull(String messageKey, Object messageParameter0, Object messageParameter1)
public String msgOrNull(String messageKey, Object messageParameter0, Object messageParameter1, Object messageParameter2)
public String msgOrNullWithParams(String messageKey, Object[] messageParameters)
public String[] arrayMsg(Object[] messageKeys, Object messageParameter0, Object messageParameter1)
public String[] arrayMsg(Object[] messageKeys, Object messageParameter0, Object messageParameter1, Object messageParameter2)
public String[] arrayMsgWithParams(Object[] messageKeys, Object[] messageParameters)
public String[] arrayMsgOrNull(Object[] messageKeys, Object messageParameter0, Object messageParameter1)
public String[] arrayMsgOrNull(Object[] messageKeys, Object messageParameter0, Object messageParameter1, Object messageParameter2)
public String[] arrayMsgOrNullWithParams(Object[] messageKeys, Object[] messageParameters)
public List<String> listMsg(List<String> messageKeys, Object messageParameter0, Object messageParameter1)
public List<String> listMsg(List<String> messageKeys, Object messageParameter0, Object messageParameter1, Object messageParameter2)
public List<String> listMsgWithParams(List<String> messageKeys, Object[] messageParameters)
public List<String> listMsgOrNull(List<String> messageKeys, Object messageParameter0, Object messageParameter1)
public List<String> listMsgOrNull(List<String> messageKeys, Object messageParameter0, Object messageParameter1, Object messageParameter2)
public List<String> listMsgOrNullWithParams(List<String> messageKeys, Object[] messageParameters)
public Set<String> setMsg(Set<String> messageKeys, Object messageParameter0, Object messageParameter1)
public Set<String> setMsg(Set<String> messageKeys, Object messageParameter0, Object messageParameter1, Object messageParameter2)
public Set<String> setMsgWithParams(Set<String> messageKeys, Object[] messageParameters)
public Set<String> setMsgOrNull(Set<String> messageKeys, Object messageParameter0, Object messageParameter1)
public Set<String> setMsgOrNull(Set<String> messageKeys, Object messageParameter0, Object messageParameter1, Object messageParameter2)
Copyright © 2017 The THYMELEAF team. All rights reserved.