Package org.thymeleaf.expression
Class Messages
- Object
-
- org.thymeleaf.expression.Messages
-
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
.- Since:
- 1.0
- Author:
- Daniel Fernández
-
-
Constructor Summary
Constructors Constructor Description Messages(ITemplateContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
Messages
public Messages(ITemplateContext context)
-
-
Method Detail
-
msg
public String msg(String messageKey, Object messageParameter0, Object messageParameter1, Object messageParameter2)
-
msgOrNull
public String msgOrNull(String messageKey, Object messageParameter0, Object messageParameter1)
-
msgOrNull
public String msgOrNull(String messageKey, Object messageParameter0, Object messageParameter1, Object messageParameter2)
-
msgOrNullWithParams
public String msgOrNullWithParams(String messageKey, Object[] messageParameters)
-
arrayMsg
public String[] arrayMsg(Object[] messageKeys, Object messageParameter0, Object messageParameter1)
-
arrayMsg
public String[] arrayMsg(Object[] messageKeys, Object messageParameter0, Object messageParameter1, Object messageParameter2)
-
arrayMsgWithParams
public String[] arrayMsgWithParams(Object[] messageKeys, Object[] messageParameters)
-
arrayMsgOrNull
public String[] arrayMsgOrNull(Object[] messageKeys, Object messageParameter0, Object messageParameter1)
-
arrayMsgOrNull
public String[] arrayMsgOrNull(Object[] messageKeys, Object messageParameter0, Object messageParameter1, Object messageParameter2)
-
arrayMsgOrNullWithParams
public String[] arrayMsgOrNullWithParams(Object[] messageKeys, Object[] messageParameters)
-
listMsg
public List<String> listMsg(List<String> messageKeys, Object messageParameter0, Object messageParameter1)
-
listMsg
public List<String> listMsg(List<String> messageKeys, Object messageParameter0, Object messageParameter1, Object messageParameter2)
-
listMsgWithParams
public List<String> listMsgWithParams(List<String> messageKeys, Object[] messageParameters)
-
listMsgOrNull
public List<String> listMsgOrNull(List<String> messageKeys, Object messageParameter0, Object messageParameter1)
-
listMsgOrNull
public List<String> listMsgOrNull(List<String> messageKeys, Object messageParameter0, Object messageParameter1, Object messageParameter2)
-
listMsgOrNullWithParams
public List<String> listMsgOrNullWithParams(List<String> messageKeys, Object[] messageParameters)
-
setMsg
public Set<String> setMsg(Set<String> messageKeys, Object messageParameter0, Object messageParameter1)
-
setMsg
public Set<String> setMsg(Set<String> messageKeys, Object messageParameter0, Object messageParameter1, Object messageParameter2)
-
setMsgWithParams
public Set<String> setMsgWithParams(Set<String> messageKeys, Object[] messageParameters)
-
setMsgOrNull
public Set<String> setMsgOrNull(Set<String> messageKeys, Object messageParameter0, Object messageParameter1)
-
setMsgOrNull
public Set<String> setMsgOrNull(Set<String> messageKeys, Object messageParameter0, Object messageParameter1, Object messageParameter2)
-
-