Package | org.spicefactory.lib.reflect.metadata |
Class | public class MappedMetadata |
Inheritance | MappedMetadata Object |
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.
Property | Defined 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 |
multiple | property |
public var multiple:Boolean = false
Determines whether the mapped metadata tag is allowed to appear multiple times on the same element.
name | property |
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.
strict | property |
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.
types | property |
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.