@Component(value="cuba_FormatStringsRegistry") public class FormatStringsRegistryImpl extends java.lang.Object implements FormatStringsRegistry
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.util.Locale,FormatStrings> |
formatStringsMap |
protected boolean |
useLocaleLanguageOnly |
NAME
Constructor and Description |
---|
FormatStringsRegistryImpl() |
Modifier and Type | Method and Description |
---|---|
FormatStrings |
getFormatStrings(java.util.Locale locale)
Get format strings for a locale.
|
FormatStrings |
getFormatStringsNN(java.util.Locale locale)
Get format strings for a locale.
|
void |
setFormatStrings(java.util.Locale locale,
FormatStrings formatStrings)
Register format strings for a locale.
|
protected java.util.Map<java.util.Locale,FormatStrings> formatStringsMap
protected boolean useLocaleLanguageOnly
@Nullable public FormatStrings getFormatStrings(java.util.Locale locale)
FormatStringsRegistry
getFormatStrings
in interface FormatStringsRegistry
public FormatStrings getFormatStringsNN(java.util.Locale locale)
FormatStringsRegistry
getFormatStringsNN
in interface FormatStringsRegistry
public void setFormatStrings(java.util.Locale locale, FormatStrings formatStrings)
FormatStringsRegistry
setFormatStrings
in interface FormatStringsRegistry