XMLListTools provides two methods for processing XMLList objects for internal use within the Fosfr framework.
public static var BOOLEAN:String = "boolean"
public static var NUMBER:String = "number"
public static var STRING:String = "string"
public static var XML_LIST:String = "xmlList"
public function XMLListTools(_fosfr:FosfrBaseClass)Parameters
public static function convertAttributesToArray(list:XMLList):Array
Converts an XMLList of attribute values to an array.
Parameters
| list:XMLList — The XMLList of attributes to be converted.
|
Returns
| Array — The returned array value.
|
public static function convertToArray(list:XMLList, multiDimensionalForSubSWFList:Boolean = false):Array
Converts an XMLList to one of two array variations, depending on what is specified for the multiDimensionalForSubSWFList parameter.
Parameters
| list:XMLList — The XMLList to be converted.
|
| |
| multiDimensionalForSubSWFList:Boolean (default = false) — Specifies whether to return a one dimensional array of the child objects of the XMLList or to return a multidimensional array of the child plus the attribute value of 'stringName', which is used by the navigation.NavArray class.
|
Returns
| Array — The returned array value.
|
public function setPropertiesFromAttributeArray(instance:Object, node:XMLList):voidParameters
| instance:Object |
| |
| node:XMLList |
public static function setPropertyFromNode(node:XMLList, initialValue:String, type:String, defaultValue:String = null, attributeName:* = null):*Parameters
| node:XMLList |
| |
| initialValue:String |
| |
| type:String |
| |
| defaultValue:String (default = null) |
| |
| attributeName:* (default = null) |
Returns