Packagecom.mapquest
Classpublic class MQObjectCollection
InheritanceMQObjectCollection Inheritance MQObject
SubclassesCoverageStyle, DBLayerQueryCollection, FeatureCollection, FeatureSpecifierCollection, GeocodeOptionsCollection, IntCollection, LatLngCollection, LocationCollection, LocationCollectionCollection, ManeuverCollection, MQSession, PointCollection, PrimitiveCollection, SignCollection, StrColCollection, StringCollection, TrekRouteCollection

Base class for collections. Takes care of basic functionality



Public Properties
 PropertyDefined by
 InheritedCLASS_NAME : String = "MQObject"
[static]
MQObject
Protected Properties
 PropertyDefined by
  itemXpath : String = "Item"
Value to represent the xpath of items in this collections
MQObjectCollection
  m_items : Array
Value to represent collection
MQObjectCollection
 InheritedobjectVersion : Number = 0
Value to represent the version of this object
MQObject
 Inheritedxml : XML = null
MQObject
 Inheritedxpath : String
MQObject
Public Methods
 MethodDefined by
  
Constructs a new MQObjectCollection object.
MQObjectCollection
  
add(obj:MQObject):int
Adds this object to the array if it has not reached the maximum size.
MQObjectCollection
  
addInteger(integer:int):int
Adds this integer to the array if it has not reached the maximum size.
MQObjectCollection
  
addString(str:String):int
Adds this string to the array if it has not reached the maximum size.
MQObjectCollection
  
append(collection:MQObjectCollection):void
Append a collection to this one
MQObjectCollection
  
contains(item:MQObject):Boolean
Check if the array contains a specific object
MQObjectCollection
  
get(i:Number):*
Get the item at postion i
MQObjectCollection
  
getAt(i:Number):*
MQObjectCollection
  
getById(strId:String):MQObject
Return the object, if it exists, with the id strId
MQObjectCollection
  
getClassName():String
Returns the text name of this class.
MQObjectCollection
  
getItemXpath():String
Returns the m_itemXpath string.
MQObjectCollection
 Inherited
Returns the version of this class.
MQObject
 Inherited
getProperty(path:String):String
Gets values from xml.
MQObject
  
getSize():int
Get the maximum size.
MQObjectCollection
  
Accessor method for ValidClassName
MQObjectCollection
 Inherited
Create a copy of this object.
MQObject
 Inherited
MQObject
 Inherited
MQObject
  
isValidObject(obj:Object):Boolean
Is this object a valid object for this collection.
MQObjectCollection
 Inherited
loadXml(xml:XML):void
New XML Handler
MQObject
 Inherited
readExternal(input:IDataInput):void
MQObject
  
remove(iIndex:int):*
Remove the item at postion iIndex
MQObjectCollection
  
removeAll():void
Remove all the items in the array
MQObjectCollection
  
removeItem(item:MQObject):void
Remove an item by it's pointer.
MQObjectCollection
 Inherited
saveXml():XML
New XML Handler
MQObject
  
set(i:Number, newO:MQObject):MQObject
Replace an object at position i and return the old object.
MQObjectCollection
  
setItemXpath(itemXpath:String):void
Sets the m_itemXpath string.
MQObjectCollection
 Inherited
setProperty(path:String, value:Object):String
Sets values in xml.
MQObject
  
setValidClassName(className:String):void
Accessor method for ValidClassName
MQObjectCollection
 Inherited
setXpath(xpath:String):void
Sets the m_xpath object.
MQObject
 Inherited
writeExternal(output:IDataOutput):void
MQObject
Protected Methods
 MethodDefined by
  
getItems():Array
Accessor method for m_items
MQObjectCollection
 Inherited
getXML():XML
Returns the m_xmlDoc object.
MQObject
 Inherited
getXpath():String
Returns the xpath string.
MQObject
 Inherited
setXML(xml:XML):void
Sets the m_xmlDoc object.
MQObject
Property detail
itemXpathproperty
protected var itemXpath:String = "Item"

Value to represent the xpath of items in this collections

m_itemsproperty 
protected var m_items:Array

Value to represent collection

Constructor detail
MQObjectCollection()constructor
public function MQObjectCollection(max:int)

Constructs a new MQObjectCollection object.

Parameters
max:int
Method detail
add()method
public function add(obj:MQObject):int

Adds this object to the array if it has not reached the maximum size. Type Checking is left to the descendent class.

Parameters
obj:MQObject

Returns
int — The new number of items in the array or nothing if it is unsuccessful
addInteger()method 
public function addInteger(integer:int):int

Adds this integer to the array if it has not reached the maximum size. Type Checking is left to the descendent class.

Parameters
integer:int

Returns
int — The new number of items in the array or nothing if it is unsuccessful
addString()method 
public function addString(str:String):int

Adds this string to the array if it has not reached the maximum size. Type Checking is left to the descendent class.

Parameters
str:String

Returns
int — The new number of items in the array or nothing if it is unsuccessful
append()method 
public function append(collection:MQObjectCollection):void

Append a collection to this one

Parameters
collection:MQObjectCollection — collection The collection to append to this one
contains()method 
public function contains(item:MQObject):Boolean

Check if the array contains a specific object

Parameters
item:MQObject — item The object to search for

Returns
Boolean — True if the object is in the collection, false otherwise
get()method 
public function get(i:Number):*

Get the item at postion i

Parameters
i:Number — i The position in the array from which to pull the object

Returns
* — The object
getAt()method 
public function getAt(i:Number):*Parameters
i:Number

Returns
*
getById()method 
public function getById(strId:String):MQObject

Return the object, if it exists, with the id strId

Parameters
strId:String — strId The id to check for.

Returns
MQObject — The object if it exists.
getClassName()method 
public override function getClassName():String

Returns the text name of this class.

Returns
String — The text name of this class.
getItems()method 
protected function getItems():Array

Accessor method for m_items

Returns
Array — The Array of m_items
getItemXpath()method 
public function getItemXpath():String

Returns the m_itemXpath string.

Returns
String — The m_itemXpath string.
getSize()method 
public function getSize():int

Get the maximum size.

Returns
int — The size of the array
getValidClassName()method 
public function getValidClassName():String

Accessor method for ValidClassName

Returns
String — Value of ValidClassName
isValidObject()method 
public function isValidObject(obj:Object):Boolean

Is this object a valid object for this collection.

Parameters
obj:Object

Returns
Boolean — True if valid, false otherwise
remove()method 
public function remove(iIndex:int):*

Remove the item at postion iIndex

Parameters
iIndex:int — iIndex The position in the array from which to pull the object

Returns
* — The object to be removed
removeAll()method 
public function removeAll():void

Remove all the items in the array

removeItem()method 
public function removeItem(item:MQObject):void

Remove an item by it's pointer.

Parameters
item:MQObject — item pointer to the item to remove.
set()method 
public function set(i:Number, newO:MQObject):MQObject

Replace an object at position i and return the old object.

Parameters
i:Number
 
newO:MQObject

Returns
MQObject — True if valid, false otherwise
setItemXpath()method 
public function setItemXpath(itemXpath:String):void

Sets the m_itemXpath string.

Parameters
itemXpath:String — itemXpath the String m_xpath is set to.
setValidClassName()method 
public function setValidClassName(className:String):void

Accessor method for ValidClassName

Parameters
className:String — className Value of ValidClassName