Packageorg.orpheus.xml.bind.annotation
Classpublic class XmlAttribute
InheritanceXmlAttribute Inheritance AbstractAnnotation

Specifies that the annotated member is derived from an XML attribute. The value of the type key must be a simple-type.

XmlAttribute metadata has the following keys, all of which are optional:

 Keys:
 name="No Default"
 nameSpace="No Default"
 required="true|false"
 type="Class"
 


Example
[XmlElement(name="author", nameSpace="http://metamorphosis.orpheus.org", required="true", type="String")]

Author: Andrew Lewisohn
Version: $Revision: 30 $, $Date: 2009-02-12 16:43:08 -0500 (Thu, 12 Feb 2009) $, $Author: alewisohn $
Since: 0.1



Public Properties
 PropertyDefined by
 Inheritedignore : Boolean
Optional.
AbstractAnnotation
  name : String
[read-only] Optional.
XmlAttribute
  nameSpace : String
[read-only] Optional.
XmlAttribute
 Inheritedprecedence : int
Determines the order of the Annotation in a sort.
AbstractAnnotation
  required : Boolean
[read-only] Optional.
XmlAttribute
  type : String
[read-only] Optional.
XmlAttribute
Protected Properties
 PropertyDefined by
 Inheritedconstants : MarshallerConstants
Annotation names used in marshalling/unmarshalling.
AbstractAnnotation
 Inheritedmetadata : Metadata
Internally held reference to the defining metadata object.
AbstractAnnotation
Public Methods
 MethodDefined by
  
XmlAttribute(metadata:Metadata)
Constructor.
XmlAttribute
  
annotationName():String
The name of this Annotation type.
XmlAttribute
  
toString():String
String representation of the object.
XmlAttribute
Protected Methods
 MethodDefined by
 Inherited
getValue(key:String):*
AbstractAnnotation
Property detail
nameproperty
name:String  [read-only]

Optional. The name of the attribute. By default, the attribute name is derived from the property name.

Implementation
    public function get name():String
nameSpaceproperty 
nameSpace:String  [read-only]

Optional. The namespace of the attribute.

Implementation
    public function get nameSpace():String
requiredproperty 
required:Boolean  [read-only]

Optional. Specifies whether the attribute is optional or required.

Implementation
    public function get required():Boolean
typeproperty 
type:String  [read-only]

Optional. The ActionScript class being referenced.

Implementation
    public function get type():String
Constructor detail
XmlAttribute()constructor
public function XmlAttribute(metadata:Metadata)

Constructor.

Parameters
metadata:Metadata
Method detail
annotationName()method
public override function annotationName():String

The name of this Annotation type.

Returns
String
toString()method 
public override function toString():String

String representation of the object.

Returns
String