com.sun.tools.javac.api
Interface Messages

All Known Implementing Classes:
JavacMessages

public interface Messages

This interface defines the minimum requirements in order to provide support for localized formatted strings.


Method Summary
 void add(java.lang.String bundleName)
          Add a new resource bundle to the list that is searched for localized messages.
 java.lang.String getLocalizedString(java.util.Locale l, java.lang.String key, java.lang.Object... args)
          Get a localized formatted string
 

Method Detail

add

void add(java.lang.String bundleName)
         throws java.util.MissingResourceException
Add a new resource bundle to the list that is searched for localized messages.

Parameters:
bundleName - the name to identify the resource bundle of localized messages.
Throws:
java.util.MissingResourceException - if the given resource is not found

getLocalizedString

java.lang.String getLocalizedString(java.util.Locale l,
                                    java.lang.String key,
                                    java.lang.Object... args)
Get a localized formatted string

Parameters:
l - locale in which the text is to be localized
key - locale-independent message key
args - misc message arguments
Returns:
a localized formatted string