Class NLS

  • Direct Known Subclasses:
    QueryParserMessages

    public class NLS
    extends java.lang.Object
    MessageBundles classes extend this class, to implement a bundle. For Native Language Support (NLS), system of software internationalization. This interface is similar to the NLS class in eclipse.osgi.util.NLS class - initializeMessages() method resets the values of all static strings, should only be called by classes that extend from NLS (see TestMessages.java for reference) - performs validation of all message in a bundle, at class load time - performs per message validation at runtime - see NLSTest.java for usage reference MessageBundle classes may subclass this type.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getLocalizedMessage​(java.lang.String key)  
      static java.lang.String getLocalizedMessage​(java.lang.String key, java.lang.Object... args)  
      static java.lang.String getLocalizedMessage​(java.lang.String key, java.util.Locale locale)  
      static java.lang.String getLocalizedMessage​(java.lang.String key, java.util.Locale locale, java.lang.Object... args)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getLocalizedMessage

        public static java.lang.String getLocalizedMessage​(java.lang.String key)
      • getLocalizedMessage

        public static java.lang.String getLocalizedMessage​(java.lang.String key,
                                                           java.util.Locale locale)
      • getLocalizedMessage

        public static java.lang.String getLocalizedMessage​(java.lang.String key,
                                                           java.util.Locale locale,
                                                           java.lang.Object... args)
      • getLocalizedMessage

        public static java.lang.String getLocalizedMessage​(java.lang.String key,
                                                           java.lang.Object... args)