mx.rpc.xml

# QualifiedResourceManager - AS3 Flex

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.

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object

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
Hide Inherited Public Methods
Show Inherited 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
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toLocaleString():String Returns the string representation of this object, formatted according to locale-specific conventions. | Object
|  | toString():String Returns the string representation of the specified object. | Object
|  | valueOf():Object Returns the primitive value of the specified object. | Object

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.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00