Packageorg.spicefactory.lib.xml.mapper.metadata
Classpublic class AttributeDecorator
InheritanceAttributeDecorator Inheritance Object
Implements MetadataMapperDecorator

Represents a Metadata tag that can be used on properties that should map to XML attributes.



Public Properties
 PropertyDefined By
  name : String
The name of the attribute.
AttributeDecorator
  property : String
The name of the property.
AttributeDecorator
  uri : String
The (optional) namespace uri.
AttributeDecorator
Public Methods
 MethodDefined By
  
Method to be invoked by the framework for each occurence of a metadata tag on each mapped class.
AttributeDecorator
Property Detail
nameproperty
public var name:String

The name of the attribute.

propertyproperty 
public var property:String

The name of the property.

uriproperty 
public var uri:String

The (optional) namespace uri.

Method Detail
decorate()method
public function decorate(builder:MetadataMapperBuilder):void

Method to be invoked by the framework for each occurence of a metadata tag on each mapped class. It allows to validate and process the attributes of that tag and to modifiy the specified mapper builder accordingly. All existing builtin metadata tags like [Attribute] or [ChoiceId] implement this interface, too.

Parameters

builder:MetadataMapperBuilder — the builder that can be modified for the mapping of the property the metadata tag was placed upon