Packageorg.as3commons.reflect
Interfacepublic interface IMetadataContainer
Implementors MetadataContainer

Describes an object that holds Metadata objects.



Public Properties
 PropertyDefined By
  metadata : Array
[read-only] Returns an array of all metadata objects in this container.
IMetadataContainer
Public Methods
 MethodDefined By
  
addMetadata(metadata:Metadata):void
Adds a Metadata object to this container.
IMetadataContainer
  
getMetadata(key:String):Array
Returns the array of Metadata object that corresponds to the given key.
IMetadataContainer
  
hasExactMetadata(otherMetadata:Metadata):Boolean
IMetadataContainer
  
hasMetadata(key:String):Boolean
Returns whether this object has meta data for the given key.
IMetadataContainer
Property Detail
metadataproperty
metadata:Array  [read-only]

Returns an array of all metadata objects in this container.


Implementation
    public function get metadata():Array
Method Detail
addMetadata()method
public function addMetadata(metadata:Metadata):void

Adds a Metadata object to this container.

Parameters

metadata:Metadata

getMetadata()method 
public function getMetadata(key:String):Array

Returns the array of Metadata object that corresponds to the given key. If no Metadata object was found, an empty array is returned.

Parameters

key:String

Returns
Array
hasExactMetadata()method 
public function hasExactMetadata(otherMetadata:Metadata):Boolean

Parameters

otherMetadata:Metadata

Returns
Boolean
hasMetadata()method 
public function hasMetadata(key:String):Boolean

Returns whether this object has meta data for the given key.

Parameters

key:String

Returns
Boolean