PackageappCoreLib.business
Classpublic class Settings
InheritanceSettings Inheritance XMLDataBroker Inheritance flash.events.EventDispatcher

Settings facilitates access to string values stored in the config.xml. The config.xml generally contains application settings and service related URLs not found in a Services.mxml. The config.xml should not contain copy or static URL related values.



Public Properties
 PropertyDefined by
 InheritedisLoaded : Boolean
Flag indicating whether the target XML is loaded.
XMLDataBroker
 Inheritedsource : String
Convenience accessor for traversing the XML document.
XMLDataBroker
 Inheritedxml : XML
Convenience accessor for traversing the XML document.
XMLDataBroker
Public Methods
 MethodDefined by
  
[static] Settings is a Singleton class.
Settings
  
getSetting(id:String):*
Method for retrieving settings contained in the config.xml.
Settings
  
getURL(id:String):String
Method for retrieving URLs contained in the config.xml.
Settings
Events
 EventSummaryDefined by
 Inherited  XMLDataBroker
 Inherited  XMLDataBroker
Method detail
getInstance()method
public static function getInstance():Settings

Settings is a Singleton class. This provide a means to get application-wide instance.

Returns
Settings
getSetting()method 
public function getSetting(id:String):*

Method for retrieving settings contained in the config.xml. This is used to access settings for an application.

Parameters
id:String — The id of the string value located in the config.xml.

Returns
*
getURL()method 
public function getURL(id:String):String

Method for retrieving URLs contained in the config.xml. This is used to access URLs for services.

Parameters
id:String — The id of the string value located in the config.xml.

Returns
String