| Package | org.spicefactory.lib.reflect |
| Class | public class MetadataAware |
| Subclasses | ClassInfo, Member |
| Method | Defined by | ||
|---|---|---|---|
|
getAllMetadata():Array
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 | ||
| getAllMetadata | () | method |
public function getAllMetadata():ArrayReturns all metadata tags for this type in no particular order.
ReturnsArray — all metadata tags for this type
|
| getMetadata | () | method |
public function getMetadata(type:Object):ArrayReturns 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.
type:Object — for mapped metadata the mapped class otherwise the name of the metadata tag as a String.
|
Array — all metadata tags for the specified type for this element
|