Packageorg.spicefactory.lib.reflect.metadata
Classpublic class MappedMetadata
InheritanceMappedMetadata Inheritance Object

Represents a metadata tag that marks a class as a mapped metadata class. These classes can be registered with Metadata.registerMetadataClass. For any mapped metadata class metadata tags in AS3 classes will be mapped to instances of that class, automatically mapping metadata attributes to properties of the mapped class including automatic type conversion if necessary.



Public Properties
 PropertyDefined By
  multiple : Boolean = false
Determines whether the mapped metadata tag is allowed to appear multiple times on the same element.
MappedMetadata
  name : String
The name of the metadata tag.
MappedMetadata
  strict : Boolean = true
Determines whether the mapped metadata tag should cause an Error to be thrown when it contains one or more attributes that do not map to a property of the mapped class.
MappedMetadata
  types : Array
The types for which this Metadata tag should be processed.
MappedMetadata
Property Detail
multipleproperty
public var multiple:Boolean = false

Determines whether the mapped metadata tag is allowed to appear multiple times on the same element.

nameproperty 
public var name:String

The name of the metadata tag. If not specified the name is the non-qualifed class name of the mapped class.

strictproperty 
public var strict:Boolean = true

Determines whether the mapped metadata tag should cause an Error to be thrown when it contains one or more attributes that do not map to a property of the mapped class.

typesproperty 
public var types:Array

The types for which this Metadata tag should be processed. Valid values are class, constructor, property or method. If not specified the metadata is processed for all types. For other types the metadata will be represented by the generic Metadata class and not be mapped to a custom class.

The constructor type is included for future use. Currently the Flex SDK compiler ignores all metadata tags placed on constructors.