Class LocalizedMessageDictionary

  • All Implemented Interfaces:
    MessageDictionary

    public class LocalizedMessageDictionary
    extends java.lang.Object
    implements MessageDictionary
    This is a dictionary that maps the text of a message to a severity.
    • Field Detail

      • locale

        private java.util.Locale locale
    • Constructor Detail

      • LocalizedMessageDictionary

        public LocalizedMessageDictionary()
        Convenience constructor will use the default locale.
      • LocalizedMessageDictionary

        public LocalizedMessageDictionary​(java.util.Locale locale)
        Generate messages with an explicit locale.
        Parameters:
        locale - The locale to localize for. If the locale is not supported (or null), the default locale will be used instead.
    • Method Detail

      • getLocale

        public java.util.Locale getLocale()
        Returns the locale being used by this class for localization of the messages.
        Returns:
        Locale in use.