Decision Center API

ilog.rules.webui
Class IlrWMultipleResourceBundle

java.lang.Object
  extended by java.util.ResourceBundle
      extended by ilog.rules.webui.IlrWMultipleResourceBundle

public class IlrWMultipleResourceBundle
extends ResourceBundle

Packages several bundles as one, with a hierarchical organization.

The properties of the last added bundle will override those of the previously added ones.

 multiBundle = new IlrWMultipleResourceBundle();

 systemBundle = ResourceBundle.getBundle("system.properties");
 localBundle  = ResourceBundle.getBundle("local.properties");
 userBundle   = ResourceBundle.getBundle("user.properties");

 multiBundle.appendBundle(systemBundle);
 multiBundle.appendBundle(localBundle);
 multiBundle.appendBundle(userBundle);
 


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
IlrWMultipleResourceBundle()
          Creates an empty bundle.
 
Method Summary
 void appendBundle(ResourceBundle bundle)
          Appends the specified bundle to this multiple bundle.
 Enumeration getKeys()
          Override of the ResourceBundle API.
protected  Object handleGetObject(String key)
          Override of the ResourceBundle API.
 void setBundles(List bundles)
          Replaces the internal list of bundles.
 
Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, 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

IlrWMultipleResourceBundle

public IlrWMultipleResourceBundle()
Creates an empty bundle.

Method Detail

appendBundle

public void appendBundle(ResourceBundle bundle)
Appends the specified bundle to this multiple bundle.

Parameters:
bundle - The bundle to add.

setBundles

public void setBundles(List bundles)
Replaces the internal list of bundles.

Parameters:
bundles - The new list of bundles.

getKeys

public Enumeration getKeys()
Override of the ResourceBundle API.

Specified by:
getKeys in class ResourceBundle

handleGetObject

protected Object handleGetObject(String key)
Override of the ResourceBundle API.

Specified by:
handleGetObject in class ResourceBundle

Decision Center API

© Copyright IBM Corp. 1987, 2013