Packageorg.spicefactory.lib.reflect
Classpublic class MetadataAware
SubclassesClassInfo, Member

Base class for all types that can have associated metadata tags.



Public Methods
 MethodDefined by
  
Returns all metadata tags for this type in no particular order.
MetadataAware
  
getMetadata(type:Object):Array
Returns all metadata tags for the specified type for this element.
MetadataAware
Method detail
getAllMetadata()method
public function getAllMetadata():Array

Returns all metadata tags for this type in no particular order.

Returns
Array — all metadata tags for this type
getMetadata()method 
public function getMetadata(type:Object):Array

Returns all metadata tags for the specified type for this element. If no tag for the specified type exists an empty Array will be returned.

In case you registered a custom metadata class for the specified name, an Array of instances of that class is returned. You must use a parameter of type Class specifying the mapped metadata class for the type parameter then.

Otherwise an Array of instances of the generic Metadata class is returned. In this case you use the name of the metadata tag as a String for the type parameter.

Parameters
type:Object — for mapped metadata the mapped class otherwise the name of the metadata tag as a String.

Returns
Array — all metadata tags for the specified type for this element