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
  
getCacheKey(metadata:Metadata):String
[static]
Metadata
  
hasArgumentWithKey(key:String):Boolean
Returns whether this metadata contains a MetadataArgument with the given key as its name.
Metadata
  
newInstance(name:String, arguments:Array = null):Metadata
[static]
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
getCacheKey()method 
public static function getCacheKey(metadata:Metadata):String

Parameters

metadata:Metadata

Returns
String
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
newInstance()method 
public static function newInstance(name:String, arguments:Array = null):Metadata

Parameters

name:String
 
arguments:Array (default = null)

Returns
Metadata
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