Adobe® Flex® 4 Language Reference
Hide Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
mx.rpc.xml 
QualifiedResourceManager 
Packagemx.rpc.xml
Classpublic class QualifiedResourceManager
InheritanceQualifiedResourceManager Inheritance 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
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Protected Properties
 PropertyDefined 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
 MethodDefined By
  
Constructor.
QualifiedResourceManager
  
Adds a resource to a potential Array of resources for a given namespace.
QualifiedResourceManager
  
Gets an Array of all resources.
QualifiedResourceManager
  
Returns an Array of resources for a given target namespace.
QualifiedResourceManager
  
Returns an Array of resources for a given target URI.
QualifiedResourceManager
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
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.