Class SplibThymeleafMessageUtil
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 key.getValueOrElse(Locale locale, String key, String defaultValue, String... args) Returns value from the argument key.booleanReturns whether properties files have a message with key.
-
Constructor Details
-
SplibThymeleafMessageUtil
public SplibThymeleafMessageUtil()Constructs a new instance.
-
-
Method Details
-
hasKey
Returns whether properties files have a message with key.- Parameters:
key- key- Returns:
- boolean
-
getValue
-
getValueOrElse
-