net.sf.locale4j.bundle
Class Locale4jBundle

java.lang.Object
  extended by java.util.ResourceBundle
      extended by java.util.ListResourceBundle
          extended by net.sf.locale4j.bundle.Locale4jBundle

public abstract class Locale4jBundle
extends ListResourceBundle

Facade for default localization resource bundle.


Field Summary
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
Locale4jBundle()
          Default Constructor.
 
Method Summary
protected  Object[][] getContents()
          Gets the language table for the default language.
protected  Object[][] getContents(Locale locale)
          Gets a translation table for a given locale.
 LocaleStore getStore()
           
protected abstract  void loadBundle()
          This method is responsible for setting up the LocaleStore object.
 void setStore(LocaleStore newStore)
           
 
Methods inherited from class java.util.ListResourceBundle
getKeys, handleGetObject
 
Methods inherited from class java.util.ResourceBundle
getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Locale4jBundle

public Locale4jBundle()
Default Constructor.

Method Detail

loadBundle

protected abstract void loadBundle()
This method is responsible for setting up the LocaleStore object. It is called from the constructor.


getContents

protected Object[][] getContents()
Gets the language table for the default language.

Specified by:
getContents in class ListResourceBundle
Returns:
an object array of key-value pairs.

getContents

protected Object[][] getContents(Locale locale)
Gets a translation table for a given locale.

Parameters:
locale - language to get
Returns:
an object array of key-value pairs.

getStore

public final LocaleStore getStore()
Returns:
the store

setStore

public final void setStore(LocaleStore newStore)
Parameters:
newStore - the store to set


Copyright © 2007-2008 Vermont Department of Taxes. All Rights Reserved.