Packagecom.jeffdePascale.fosfr.core
Classpublic class XMLListTools

XMLListTools provides two methods for processing XMLList objects for internal use within the Fosfr framework.



Public Properties
 PropertyDefined by
  BOOLEAN : String = "boolean"
[static]
XMLListTools
  NUMBER : String = "number"
[static]
XMLListTools
  STRING : String = "string"
[static]
XMLListTools
  XML_LIST : String = "xmlList"
[static]
XMLListTools
Public Methods
 MethodDefined by
  
XMLListTools
  
convertAttributesToArray(list:XMLList):Array
[static] Converts an XMLList of attribute values to an array.
XMLListTools
  
convertToArray(list:XMLList, multiDimensionalForSubSWFList:Boolean = false):Array
[static] Converts an XMLList to one of two array variations, depending on what is specified for the multiDimensionalForSubSWFList parameter.
XMLListTools
  
setPropertiesFromAttributeArray(instance:Object, node:XMLList):void
XMLListTools
  
setPropertyFromNode(node:XMLList, initialValue:String, type:String, defaultValue:String = null, attributeName:* = null):*
[static]
XMLListTools
Property detail
BOOLEANproperty
public static var BOOLEAN:String = "boolean"
NUMBERproperty 
public static var NUMBER:String = "number"
STRINGproperty 
public static var STRING:String = "string"
XML_LISTproperty 
public static var XML_LIST:String = "xmlList"
Constructor detail
XMLListTools()constructor
public function XMLListTools(_fosfr:FosfrBaseClass)Parameters
_fosfr:FosfrBaseClass
Method detail
convertAttributesToArray()method
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.
convertToArray()method 
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.
setPropertiesFromAttributeArray()method 
public function setPropertiesFromAttributeArray(instance:Object, node:XMLList):voidParameters
instance:Object
 
node:XMLList
setPropertyFromNode()method 
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
*