Package | com.ericfeminella.external |
Class | public class ResourceBundleManager |
Implements | IResourceBundle, IResourceBundleManager |
Property | Defined by | ||
---|---|---|---|
resourceBundles : Dictionary
Internal hash containing all registered ResourceBundles
| ResourceBundleManager |
Method | Defined 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 | ||
getRegisteredResourceBundles():Array
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 |
resourceBundles | property |
protected var resourceBundles:Dictionary
Internal hash containing all registered ResourceBundles
ResourceBundleManager | () | constructor |
public function ResourceBundleManager()
Instantiates the Singleton instance of ResourceBundleManager
addResourceBundle | () | method |
public function addResourceBundle(id:String, rb:ResourceBundle):void
Adds a ResourceBundle with an associated identifier to ResourceBundleManager internal ResourceBundle hash
Parametersid: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
Parametersid:String |
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
Parameterskey:String — ResourceBundle key identifier
|
Boolean — String value of specified key identifier
|
getInstance | () | method |
public static function getInstance():ResourceBundleManager
Returns the Singleton instance of ResourceBundleManager
ReturnsResourceBundleManager —
ResourceBundleManager instance
|
getNumber | () | method |
public function getNumber(key:String):Number
Returns a Number from a registered ResourceBundle
Parameterskey:String — ResourceBundle key identifier
|
Number — Numberic value of specified key identifier
|
getObject | () | method |
public function getObject(key:String):Object
Returns an Object from a registered ResourceBundle
Parameterskey:String — ResourceBundle key identifier
|
Object — Object value of specified key identifier
|
getRegisteredResourceBundles | () | method |
public function getRegisteredResourceBundles():Array
Returns a String Array containing all registered ResourceBundles names
ReturnsArray — a String Array containing registered ResourceBundles
|
getResourceBundle | () | method |
public function getResourceBundle(id:String):ResourceBundle
Returns a ResourceBundle which has previously been added via addResourceBundle
Parametersid:String — id of the internal hash persisted ResourceBundle
|
ResourceBundle — internal hash persisted ResourceBundle
|
getResourceBundles | () | method |
public function getResourceBundles():Dictionary
Returns internal ResourceBundle hash
ReturnsDictionary — Dictionary containing registered ResourceBundles
|
getString | () | method |
public function getString(key:String):String
Returns a String from a registered ResourceBundle
Parameterskey:String — ResourceBundle key identifier
|
String — String value of specified key identifier
|
getStringArray | () | method |
public function getStringArray(key:String):Array
Returns a String Array from a registered ResourceBundle
Parameterskey:String — ResourceBundle key identifier
|
Array — String Array value of specified key identifier
|
removeResourceBundle | () | method |
public function removeResourceBundle(id:String):void
Deletes a registered ResourceBundle instance from registration
Parametersid:String — the id of the specific registered ResourceBundle to remove
|