Packagecom.ericfeminella.external
Classpublic class ResourceBundleManager
ImplementsIResourceBundle, IResourceBundleManager

Provides Singleton access to all ResourceBundle instances throughout an application



Protected Properties
 PropertyDefined by
  resourceBundles : Dictionary
Internal hash containing all registered ResourceBundles
ResourceBundleManager
Public Methods
 MethodDefined by
  
Instantiates the Singleton instance of ResourceBundleManager
ResourceBundleManager
  
addResourceBundle(id:String, rb:ResourceBundle):void
Adds a ResourceBundle with an associated identifier to ResourceBundleManager internal ResourceBundle hash
ResourceBundleManager
  
containsResourceBundle(id:String):Boolean
Determines if a ResourceBundle instance has been registered
ResourceBundleManager
  
getBoolean(key:String):Boolean
Returns a Boolean from a registered ResourceBundle
ResourceBundleManager
  
[static] Returns the Singleton instance of ResourceBundleManager
ResourceBundleManager
  
getNumber(key:String):Number
Returns a Number from a registered ResourceBundle
ResourceBundleManager
  
getObject(key:String):Object
Returns an Object from a registered ResourceBundle
ResourceBundleManager
  
Returns a String Array containing all registered ResourceBundles names
ResourceBundleManager
  
getResourceBundle(id:String):ResourceBundle
Returns a ResourceBundle which has previously been added via addResourceBundle
ResourceBundleManager
  
getResourceBundles():Dictionary
Returns internal ResourceBundle hash
ResourceBundleManager
  
getString(key:String):String
Returns a String from a registered ResourceBundle
ResourceBundleManager
  
getStringArray(key:String):Array
Returns a String Array from a registered ResourceBundle
ResourceBundleManager
  
removeResourceBundle(id:String):void
Deletes a registered ResourceBundle instance from registration
ResourceBundleManager
Property detail
resourceBundlesproperty
protected var resourceBundles:Dictionary

Internal hash containing all registered ResourceBundles

Constructor detail
ResourceBundleManager()constructor
public function ResourceBundleManager()

Instantiates the Singleton instance of ResourceBundleManager

Method detail
addResourceBundle()method
public function addResourceBundle(id:String, rb:ResourceBundle):void

Adds a ResourceBundle with an associated identifier to ResourceBundleManager internal ResourceBundle hash

Parameters
id:String — identifier of the ResourceBundle
 
rb:ResourceBundle — ResourceBundle to add
containsResourceBundle()method 
public function containsResourceBundle(id:String):Boolean

Determines if a ResourceBundle instance has been registered

Parameters
id:String

Returns
Boolean — true if the ResourceBundle has been registered, false if not
getBoolean()method 
public function getBoolean(key:String):Boolean

Returns a Boolean from a registered ResourceBundle

Parameters
key:String — ResourceBundle key identifier

Returns
Boolean — String value of specified key identifier
getInstance()method 
public static function getInstance():ResourceBundleManager

Returns the Singleton instance of ResourceBundleManager

Returns
ResourceBundleManager — ResourceBundleManager instance
getNumber()method 
public function getNumber(key:String):Number

Returns a Number from a registered ResourceBundle

Parameters
key:String — ResourceBundle key identifier

Returns
Number — Numberic value of specified key identifier
getObject()method 
public function getObject(key:String):Object

Returns an Object from a registered ResourceBundle

Parameters
key:String — ResourceBundle key identifier

Returns
Object — Object value of specified key identifier
getRegisteredResourceBundles()method 
public function getRegisteredResourceBundles():Array

Returns a String Array containing all registered ResourceBundles names

Returns
Array — a String Array containing registered ResourceBundles
getResourceBundle()method 
public function getResourceBundle(id:String):ResourceBundle

Returns a ResourceBundle which has previously been added via addResourceBundle

Parameters
id:String — id of the internal hash persisted ResourceBundle

Returns
ResourceBundle — internal hash persisted ResourceBundle
getResourceBundles()method 
public function getResourceBundles():Dictionary

Returns internal ResourceBundle hash

Returns
Dictionary — Dictionary containing registered ResourceBundles
getString()method 
public function getString(key:String):String

Returns a String from a registered ResourceBundle

Parameters
key:String — ResourceBundle key identifier

Returns
String — String value of specified key identifier
getStringArray()method 
public function getStringArray(key:String):Array

Returns a String Array from a registered ResourceBundle

Parameters
key:String — ResourceBundle key identifier

Returns
Array — String Array value of specified key identifier
removeResourceBundle()method 
public function removeResourceBundle(id:String):void

Deletes a registered ResourceBundle instance from registration

Parameters
id:String — the id of the specific registered ResourceBundle to remove