Class LocalizedMessageDictionary
java.lang.Object
com.adobe.epubcheck.messages.LocalizedMessageDictionary
- All Implemented Interfaces:
MessageDictionary
This is a dictionary that maps the text of a message to a severity.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConvenience constructor will use the default locale.LocalizedMessageDictionary(Locale locale) Generate messages with an explicit locale. -
Method Summary
Modifier and TypeMethodDescriptionReturns the locale being used by this class for localization of the messages.getMessage(MessageId id)
-
Field Details
-
localizedMessages
-
locale
-
-
Constructor Details
-
LocalizedMessageDictionary
public LocalizedMessageDictionary()Convenience constructor will use the default locale. -
LocalizedMessageDictionary
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
Returns the locale being used by this class for localization of the messages.- Returns:
- Locale in use.
-
getMessage
- Specified by:
getMessagein interfaceMessageDictionary
-