Packageorg.springextensions.actionscript.utils
SVN browsingObjectUtils.as
FisheyeObjectUtils.as
Classpublic final class ObjectUtils

ObjectsUtils contains utility methods for working with objects.

Author: Christophe Herreman
Version: $Revision: 21 $, $Date: 2008-11-01 22:58:42 +0100 (za, 01 nov 2008) $, $Author: dmurat $
Since: 0.1



Public Methods
 MethodDefined by
  
getClass(instance:Object, applicationDomain:ApplicationDomain = null):Class
[static] Returns the Class for the specified instance, if the instance is a UIComponent its ApplicationDomain is retrieved and used for the Class retrieval.
ObjectUtils
  
nullSafeToString(array:Array):String
[static] Return a String representation of the contents of the specified array.
ObjectUtils
Method detail
getClass()method
public static function getClass(instance:Object, applicationDomain:ApplicationDomain = null):Class

Returns the Class for the specified instance, if the instance is a UIComponent its ApplicationDomain is retrieved and used for the Class retrieval.

Parameters
instance:Object — The object to be inspected
 
applicationDomain:ApplicationDomain (default = null)

Returns
Class — The Class for the object.
nullSafeToString()method 
public static function nullSafeToString(array:Array):String

Return a String representation of the contents of the specified array.

The String representation consists of a list of the array's elements, enclosed in curly braces ("[]"). Adjacent elements are separated by the characters "," (a comma). Returns "null" if array is null. Parameters

array:Array — the array to build a String representation for

Returns
String — a String representation of array