Packageorg.as3commons.reflect
Classpublic class MetaData
InheritanceMetaData Inheritance Object
Implements org.as3commons.lang.IEquals

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
  
equals(other:Object):Boolean
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
equals()method
public function equals(other:Object):Boolean

Parameters

other:Object

Returns
Boolean
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
setName()method 
as3commons_reflect function setName(value:String):void

Parameters

value:String

toString()method 
public function toString():String

Returns
String
Constant Detail
BINDABLEConstant
public static const BINDABLE:String = Bindable
TRANSIENTConstant 
public static const TRANSIENT:String = Transient