Interface I18nSource

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String[] keys​(java.lang.String baseName, java.util.Locale locale)
      List all the message's keys for the given locale.
      java.lang.String message​(java.lang.String key, java.util.Locale locale, java.lang.Object... args)
      Try to resolve the message under the given key.
    • Method Detail

      • keys

        java.lang.String[] keys​(java.lang.String baseName,
                                java.util.Locale locale)
        List all the message's keys for the given locale.
        Parameters:
        locale - The current locale.
        baseName - The base name.
        Returns:
        All the message's keys.
      • message

        java.lang.String message​(java.lang.String key,
                                 java.util.Locale locale,
                                 java.lang.Object... args)
        Try to resolve the message under the given key.
        Parameters:
        key - The message's key.
        locale - The current locale.
        args - The message arguments.
        Returns:
        The message, null or a default message. It depends on the implementation.