Class MessageSourceHelper
-
- All Implemented Interfaces:
public class MessageSourceHelper- Since:
2023-11-24
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static MessageSourceDummypublic final static CombinableMessageSourceCombine
-
Constructor Summary
Constructors Constructor Description MessageSourceHelper()
-
Method Summary
Modifier and Type Method Description static MessageSourcePrimary()static booleanhasPrimary()static booleanhasCombine()static I18nAware.I18nSourcei18nSource()static StringgetMessage(@NotNull() String code, Array<Object> args, String defaultMessage, @NotNull() Locale locale)static StringgetMessage(@NotNull() String code, Array<Object> args, @NotNull() Locale locale)static StringgetMessage(@NotNull() MessageSourceResolvable resolvable, @NotNull() Locale locale)static StringgetMessage(@NotNull() I18nAware i18nAware, @NotNull() Locale locale)-
-
Method Detail
-
Primary
static MessageSource Primary()
-
hasPrimary
static boolean hasPrimary()
-
hasCombine
static boolean hasCombine()
-
i18nSource
static I18nAware.I18nSource i18nSource()
-
getMessage
static String getMessage(@NotNull() String code, Array<Object> args, String defaultMessage, @NotNull() Locale locale)
-
getMessage
@NotNull() static String getMessage(@NotNull() String code, Array<Object> args, @NotNull() Locale locale)
-
getMessage
@NotNull() static String getMessage(@NotNull() MessageSourceResolvable resolvable, @NotNull() Locale locale)
-
getMessage
@NotNull() static String getMessage(@NotNull() I18nAware i18nAware, @NotNull() Locale locale)
-
-
-
-