Class LocalizedMessageDictionary

java.lang.Object
com.adobe.epubcheck.messages.LocalizedMessageDictionary
All Implemented Interfaces:
MessageDictionary

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

  • Constructor Details

    • LocalizedMessageDictionary

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

      public LocalizedMessageDictionary(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 Details

    • getLocale

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

      public Message getMessage(MessageId id)
      Specified by:
      getMessage in interface MessageDictionary