org.sonar.api.utils
Class LocalizedMessages

java.lang.Object
  extended by java.util.ResourceBundle
      extended by org.sonar.api.utils.LocalizedMessages

public class LocalizedMessages
extends ResourceBundle


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control
 
Field Summary
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
LocalizedMessages(Locale locale, String... basenames)
          Constructs a resource bundle from a list of other resource bundles.
 
Method Summary
 String format(String key, Object... args)
           
 String formatQuietly(String key, Object... args)
           
 Enumeration<String> getKeys()
           
 Locale getLocale()
           
protected  Object handleGetObject(String key)
           
 
Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getObject, getString, getStringArray, handleKeySet, keySet, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalizedMessages

public LocalizedMessages(Locale locale,
                         String... basenames)
Constructs a resource bundle from a list of other resource bundles. If there are duplicate keys, the key from the resource bundle with the smallest index takes precedence.

Method Detail

getLocale

public Locale getLocale()
Overrides:
getLocale in class ResourceBundle

format

public String format(String key,
                     Object... args)

formatQuietly

public String formatQuietly(String key,
                            Object... args)

getKeys

public Enumeration<String> getKeys()
Specified by:
getKeys in class ResourceBundle

handleGetObject

protected Object handleGetObject(String key)
Specified by:
handleGetObject in class ResourceBundle


Copyright © 2009-2014 SonarSource. All Rights Reserved.