Apache Flex 4.16.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
QualifiedResourceManager

Package | mx.rpc.xml
Class | public class QualifiedResourceManager
Inheritance | QualifiedResourceManager Object

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

QualifiedResourceManager is a helper class that simply maintains the order that resources were added and maps a target namespace to one or more resources.

Protected Properties

| Property | Defined By
--- | --- | ---
|  | resources : Array This Array is used to preserve order in which resources were added so as to support the order in which they are searched. | QualifiedResourceManager
|  | resourcesMap : Object Maps Namespace.uri to an Array of resources. | QualifiedResourceManager

Public Methods

| Method | Defined By
--- | --- | ---
|  | QualifiedResourceManager() Constructor. | QualifiedResourceManager
|  | addResource(ns:Namespace, resource:Object):void Adds a resource to a potential Array of resources for a given namespace. | QualifiedResourceManager
|  | getResources():Array Gets an Array of all resources. | QualifiedResourceManager
|  | getResourcesForNamespace(ns:Namespace):Array Returns an Array of resources for a given target namespace. | QualifiedResourceManager
|  | getResourcesForURI(uri:String):Array Returns an Array of resources for a given target URI. | QualifiedResourceManager

Property Detail

resources | property

`protected var resources:Array`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

This Array is used to preserve order in which resources were added so as to support the order in which they are searched.

resourcesMap | property |

`protected var resourcesMap:Object`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Maps `Namespace.uri` to an `Array` of resources.

Constructor Detail

QualifiedResourceManager | () | Constructor

`public function QualifiedResourceManager()`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Constructor.

Method Detail

addResource | () | method

`public function addResource(ns:Namespace, resource:Object):void`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Adds a resource to a potential Array of resources for a given namespace.

Parameters

| `ns:Namespace` — The namespace for the Array of resources.
| `resource:Object` — The resource to add.

getResources | () | method |

`public function getResources():Array`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Gets an Array of all resources.

Returns

| `Array` — An Array of resources.

getResourcesForNamespace | () | method |

`public function getResourcesForNamespace(ns:Namespace):Array`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Returns an Array of resources for a given target namespace.

Parameters

| `ns:Namespace` — namespace for the Array of resources.

Returns

| `Array` — An Array of resources.

getResourcesForURI | () | method |

`public function getResourcesForURI(uri:String):Array`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Returns an Array of resources for a given target URI.

Parameters

| `uri:String` — The URI for the Array of resources.

Returns

| `Array` — An Array of resources.

Sun Mar 5 2017, 03:42 PM +11:00