API Documentation | All Packages | All Classes | Index | Frames No Frames |
MetaDataArgument

Package | flex.lang.reflect.metadata
Class | public class MetaDataArgument
Inheritance | MetaDataArgument 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

| Property | Defined 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

| Method | Defined 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

key | property

`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`

unpaired | property |

`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`

value | property |

`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

Thu Apr 10 2014, 08:07 AM +10:00