PackageappCoreLib.business
Classpublic class Content
InheritanceContent Inheritance XMLDataBroker Inheritance flash.events.EventDispatcher

Content facilitates access to string values stored in the content.xml. The content.xml should not contain data related to application settings or service related URLs.



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] Content is a Singleton class.
Content
  
getList(id:String, listItemNodeName:String = "listItem"):XMLList
Method for retrieving XMLLists contained in the content.xml.
Content
  
getModule(id:String):String
Method for retrieving swf URL values contained in the content.xml.
Content
  
getStringValue(id:String):String
Method for retrieving string values contained in the content.xml.
Content
  
getSwf(id:String):String
Method for retrieving swf URL values contained in the content.xml.
Content
  
getURL(id:String):String
Method for retrieving URLs contained in the content.xml.
Content
Events
 EventSummaryDefined by
 Inherited  XMLDataBroker
 Inherited  XMLDataBroker
Method detail
getInstance()method
public static function getInstance():Content

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

Returns
Content
getList()method 
public function getList(id:String, listItemNodeName:String = "listItem"):XMLList

Method for retrieving XMLLists contained in the content.xml. This is used to retrieve lists of data for use in dataProviders.

Parameters
id:String — The id of the string value located in the content.xml.
 
listItemNodeName:String (default = "listItem") — The node name associated with each listItem within the list.

Returns
XMLList
getModule()method 
public function getModule(id:String):String

Method for retrieving swf URL values contained in the content.xml. This is primarily used to retrieve the location of module SWFs loaded in an application.

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

Returns
String
getStringValue()method 
public function getStringValue(id:String):String

Method for retrieving string values contained in the content.xml. This is primarily used to retrieve strings associated with the copy contained within an application.

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

Returns
String
getSwf()method 
public function getSwf(id:String):String

Method for retrieving swf URL values contained in the content.xml. This is primarily used to retrieve the location of SWFs loaded in an application.

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

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

Method for retrieving URLs contained in the content.xml. This is primarily used to retrieve URL links not used for sending and requesting data within an application.

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

Returns
String