Packageorg.as3commons.reflect
Classpublic class MetaData

A MetaData object contains information about a metadata element placed above a member of a class or instance.



Public Properties
 PropertyDefined by
  arguments : Array
[read-only] Returns the MetaDataArgument objects that describe this metadata.
MetaData
  name : String
[read-only] Returns the name of this metadata.
MetaData
Public Methods
 MethodDefined by
  
MetaData(name:String, arguments:Array = null)
Creates a new MetaData object.
MetaData
  
Returns the MetaDataArgument for the given key.
MetaData
  
hasArgumentWithKey(key:String):Boolean
Returns whether this metadata contains a MetaDataArgument with the given key as its name.
MetaData
  
toString():String
MetaData
Public Constants
 ConstantDefined by
  BINDABLE : String = "Bindable"
[static]
MetaData
  TRANSIENT : String = "Transient"
[static]
MetaData
Property detail
argumentsproperty
arguments:Array  [read-only]

Returns the MetaDataArgument objects that describe this metadata.

Implementation
    public function get arguments():Array
nameproperty 
name:String  [read-only]

Returns the name of this metadata.

Implementation
    public function get name():String
Constructor detail
MetaData()constructor
public function MetaData(name:String, arguments:Array = null)

Creates a new MetaData object.

Parameters
name:String — the name of the metadata
 
arguments:Array (default = null) — an array of MetaDataArgument object that describe this metadata object
Method detail
getArgument()method
public function getArgument(key:String):MetaDataArgument

Returns the MetaDataArgument for the given key. If none was found, null is returned.

Parameters
key:String

Returns
MetaDataArgument
hasArgumentWithKey()method 
public function hasArgumentWithKey(key:String):Boolean

Returns whether this metadata contains a MetaDataArgument with the given key as its name.

Parameters
key:String

Returns
Boolean — true if a MetaDataArgument was found; false otherwise
toString()method 
public function toString():String

Returns
String
Constant detail
BINDABLEconstant
public static const BINDABLE:String = "Bindable"
TRANSIENTconstant 
public static const TRANSIENT:String = "Transient"