Package org.hl7.fhir.utilities.i18n
Class I18nBase
- java.lang.Object
-
- org.hl7.fhir.utilities.i18n.I18nBase
-
-
Constructor Summary
Constructors Constructor Description I18nBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringformatMessage(String theMessage, Object... theMessageArguments)Formats the given message, if needed, with the passed in message arguments.LocalegetLocale()booleanisWarnAboutMissingMessages()voidsetLocale(Locale locale)voidsetValidationMessageLanguage(Locale locale)Loads the correspondingResourceBundlefor the passed inLocale.voidsetWarnAboutMissingMessages(boolean warnAboutMissingMessages)
-
-
-
Constructor Detail
-
I18nBase
public I18nBase()
-
-
Method Detail
-
formatMessage
public String formatMessage(String theMessage, Object... theMessageArguments)
Formats the given message, if needed, with the passed in message arguments.- Parameters:
theMessage- Base message to format.theMessageArguments- Placeholder arguments, if needed.- Returns:
- The formatted, internationalized,
String
-
setValidationMessageLanguage
public void setValidationMessageLanguage(Locale locale)
Loads the correspondingResourceBundlefor the passed inLocale.- Parameters:
locale-Localeto load resources for.
-
isWarnAboutMissingMessages
public boolean isWarnAboutMissingMessages()
-
setWarnAboutMissingMessages
public void setWarnAboutMissingMessages(boolean warnAboutMissingMessages)
-
-