java.lang.Object
jp.ecuacion.splib.web.util.SplibThymeleafMessageUtil
Provides localized messages called from thymeleaf.
This calls PropertyFileUtil.
The existence of the class doesn't prevent you to use #{...}.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets message or itemName from the specified id.getValueOrElse(Locale locale, String id, String defaultValue, String... args) Returns value from id.booleanReturns whether properties files have a message with id.
-
Constructor Details
-
SplibThymeleafMessageUtil
public SplibThymeleafMessageUtil()Constructs a new instance.
-
-
Method Details
-
get
Gets message or itemName from the specified id.- Parameters:
locale- localeid- id- Returns:
- String
-
has
Returns whether properties files have a message with id.- Parameters:
id- id- Returns:
- boolean
-
getValueOrElse
Returns value from id.- Parameters:
id- id- Returns:
- String
-