Packageflex.lang.reflect.metadata
Classpublic class MetaDataArgument
InheritanceMetaDataArgument Inheritance Object

An object representing an argument of a metadata tag, in the example [Test(arg="1")] arg="1" is the argument. You can interrogate the arguments key and value.



Public Properties
 PropertyDefined By
  key : String
[read-only] Retrieves the key of an argument.
MetaDataArgument
  unpaired : Boolean
[read-only] Indicates if the argument is unpaired.
MetaDataArgument
  value : String
[read-only] Retrieves the value portion of an argument.
MetaDataArgument
Public Methods
 MethodDefined By
  
MetaDataArgument(argumentXML:XML)
Constructor Parses nodes returned from a call to describeType to provide an object wrapper.
MetaDataArgument
  
equals(item:MetaDataArgument):Boolean
Compares two MetaDataArguments for key and value equality
MetaDataArgument
Property Detail
keyproperty
key:String  [read-only]

Retrieves the key of an argument. Read Only. (The name of a name/value pair.)


Implementation
    public function get key():String
unpairedproperty 
unpaired:Boolean  [read-only]

Indicates if the argument is unpaired. Given the following example: [RunWith("org.flexunit.runners.Suite",order=1)] order="1" is a paired argument where as "org.flexunit.runners.Suite" is unpaired.


Implementation
    public function get unpaired():Boolean
valueproperty 
value:String  [read-only]

Retrieves the value portion of an argument. Read Only. (The value of a name/value pair.)


Implementation
    public function get value():String
Constructor Detail
MetaDataArgument()Constructor
public function MetaDataArgument(argumentXML:XML)

Constructor Parses nodes returned from a call to describeType to provide an object wrapper. Expected format of the argument is

Parameters
argumentXML:XML — XML node.
Method Detail
equals()method
public function equals(item:MetaDataArgument):Boolean

Compares two MetaDataArguments for key and value equality

Parameters

item:MetaDataArgument

Returns
Boolean — Returns boolean indicating equality