com.taco.util
Class AccessibleResourceBundle

java.lang.Object
  extended by java.util.ResourceBundle
      extended by com.taco.util.AccessibleResourceBundle
Direct Known Subclasses:
CachedKeysResourceBundle

public abstract class AccessibleResourceBundle
extends java.util.ResourceBundle

A subclass of ResourcBundle whose attributes can be manipulated by instances of IResourceBundleFactory.


Field Summary
protected  boolean _isParentSet
          Has the parent been set yet?
protected  java.util.Locale _locale
          The locale of this bundle.
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
AccessibleResourceBundle()
           
 
Method Summary
 java.util.Locale getLocale()
           
 java.util.ResourceBundle getParent()
          Return the parent of the resource bundle.
 void setLocale(java.util.Locale locale)
          Set the locale of this bundle.
 void setParent(java.util.ResourceBundle parent)
          Set the parent of the resource bundle.
 
Methods inherited from class java.util.ResourceBundle
getBundle, getBundle, getBundle, getKeys, getObject, getString, getStringArray, handleGetObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_locale

protected java.util.Locale _locale
The locale of this bundle.


_isParentSet

protected boolean _isParentSet
Has the parent been set yet?

Constructor Detail

AccessibleResourceBundle

public AccessibleResourceBundle()
Method Detail

getParent

public java.util.ResourceBundle getParent()
Return the parent of the resource bundle. This method is intended to be called only by an implementation of IResourceBundleFactory.


setParent

public void setParent(java.util.ResourceBundle parent)
Set the parent of the resource bundle. This method is intended to be called only once by an implementation of IResourceBundleFactory. If the parent is set more than once, throw a IllegalStateException.

Overrides:
setParent in class java.util.ResourceBundle

getLocale

public java.util.Locale getLocale()
Overrides:
getLocale in class java.util.ResourceBundle

setLocale

public void setLocale(java.util.Locale locale)
Set the locale of this bundle. This should only be called only once implementation of IResourceBundleFactory. If the locale is set more than once, throw a IllegalStateException.