Packagecom.memamsa.airdb
Classpublic class Reflector

Utilities for introspecting class and object metadata through reflection.



Protected Properties
 PropertyDefined by
  cache : Dictionary
[static]
Reflector
Public Methods
 MethodDefined by
  
describe(obj:Object):XML
[static] Looks up or gathers the XML metadata information for a specified object.
Reflector
  
getMetadata(obj:Object, metadataType:String, includeSuperClasses:Boolean = false):XMLList
[static] Gets specific metadata information for the given object, including super classes if specified.
Reflector
Property detail
cacheproperty
protected static var cache:Dictionary

Method detail
describe()method
public static function describe(obj:Object):XML

Looks up or gathers the XML metadata information for a specified object. Caches the description for future lookup.

Parameters
obj:Object — An Object for which the metadata description is desired. When a String, XML or XMLList object is specified, dereferences the actual Object by looking up the corresponding class definition.

Returns
XML — The XML description of the specified object

See also

flash.utils.describeType
flash.utils.getDefinitionByName
getMetadata()method 
public static function getMetadata(obj:Object, metadataType:String, includeSuperClasses:Boolean = false):XMLList

Gets specific metadata information for the given object, including super classes if specified.

Parameters
obj:Object — The Object for which metadata lookup is required
 
metadataType:String — Specify the class or object metadata to lookup
 
includeSuperClasses:Boolean (default = false) — Include super class metadata during lookup

Returns
XMLList — XML description for the requested metadata

See also

Reflector.describe
flash.utils.describeType