Packageorg.spicefactory.lib.xml.mapper.metadata
Classpublic class ChildTextNodeDecorator
InheritanceChildTextNodeDecorator Inheritance Object
Implements MetadataMapperDecorator

Represents a Metadata tag that can be used on properties that should map to text nodes wrapped by child elements.



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

The name of the child element holding the text node.

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