Static class that defines static methods used in relation with various types of data.
public static function applyUID(target:ICollectionView):void
Applies unique identifier to each row of any implementation of ICollectionView
Parameters
| target:ICollectionView — Any ICollectionView type of object to apply unique identifier.
|
public static function objectToArrayCollection(value:Object):ArrayCollection
Converts Object type of data into an ArrayCollection instance.
Parameters
Returns
| ArrayCollection — A new ArrayCollection instance that is converted from a generic Object data.
|
public static function objectToCollection(value:Object):ICollectionView
Converts Object type of data into an ICollectionView instance.
Parameters
Returns
| ICollectionView — A new ICollectionView instance that is converted from a generic Object data.
|
public static function wrapDataAsObject(data:Object, propertyName:String = "data"):Object
Returns a new generic Object wrapping some data.
Parameters
| data:Object — Any type of data to wrap in a generic Object.
|
| |
| propertyName:String (default = "data") — A property name of a resulting object so we can access original data through
this propertyName. Default value is 'data'.
|
Returns
| Object — A new generic object wrapping original data with certain property name.
|
public static function xmlListToArrayCollection(xml:XMLList):ArrayCollection
Converts XMLList instance into an ArrayCollection instance.
Parameters
| xml:XMLList — XMLList type of data to convert into an ArrayCollection.
|
Returns
| ArrayCollection — A new ArrayCollection instance that is converted from an XMLList instance.
|