MapQuest Advantage JavaScript API Reference Documentation

Class MQObjectCollection

Object
   |
   +--MQObject
         |
         +--MQObjectCollection
Direct Known Subclasses:
MQStringCollection, MQIntCollection, MQLocationCollection, MQSession, MQDBLayerQueryCollection, MQFeatureSpecifierCollection, MQLatLngCollection, MQLocationCollectionCollection, MQGeocodeOptionsCollection, MQTrekRouteCollection, MQPointCollection, MQPrimitiveCollection, MQSignCollection, MQStrColCollection, MQFeatureCollection, MQManeuverCollection, MQCoverageStyle

class MQObjectCollection
extends MQObject


Base class for collections. Takes care of basic functionality
Defined in mqcommon.js


Field Summary
<private>  Array m_items
          Value to represent collection
<private>  String m_itemXpath
          Value to represent the xpath of items in this collections
<private>  int m_maxItems
          Value to represent maximum number of items
<private>  String validClassName
          Value to represent className to check for
   
Fields inherited from class MQObject
m_xmlDoc, m_xpath
 
Constructor Summary
MQObjectCollection (<int> max)
            Constructs a new MQObjectCollection object.
 
Method Summary
 int add(obj)
           Adds this object to the array if it has not reached the maximum size.
 void append(<MQObjectCollection> collection)
           Append a collection to this one
 Boolean contains(<MQObject> item)
           Check if the array contains a specific object
 Object get(<int> i)
           Get the item at postion i
 Object getAt(<int> i)
           Wraps the get(i) method
 Object getById(<String> strId)
           Return the object, if it exists, with the id strId
 String getClassName()
           Returns the text name of this class.
 Array getM_Items()
           Accessor method for m_items
 String getM_itemXpath()
           Returns the m_itemXpath string.
 int getObjectVersion()
           Returns the version of this class.
 int getSize()
           Get the maximum size.
 String getValidClassName()
           Accessor method for ValidClassName
 MQObject isValidObject(obj)
           Is this object a valid object for this collection.
 MQObject remove(<int> iIndex)
           Remove the item at postion iIndex
 void removeAll()
           Remove all the items in the array
 void removeItem(<Object> item)
           Remove an item by it's pointer.
 MQObject set(i, newO)
           Replace an object at position i and return the old object.
 void setM_itemXpath(<String> itemXpath)
           Sets the m_itemXpath string.
 void setValidClassName(<String> className)
           Accessor method for ValidClassName
 
Methods inherited from class MQObject
getM_XmlDoc, setM_XmlDoc, getM_Xpath, setM_Xpath, setProperty, getProperty, copy, internalCopy
 

Field Detail

m_items

<private> Array m_items

m_itemXpath

<private> String m_itemXpath

m_maxItems

<private> int m_maxItems

validClassName

<private> String validClassName

Constructor Detail

MQObjectCollection

MQObjectCollection(<int> max)

Method Detail

add

int add(obj)

append

void append(<MQObjectCollection> collection)

contains

Boolean contains(<MQObject> item)

get

Object get(<int> i)

getAt

Object getAt(<int> i)

getById

Object getById(<String> strId)

getClassName

String getClassName()

getM_Items

Array getM_Items()

getM_itemXpath

String getM_itemXpath()

getObjectVersion

int getObjectVersion()

getSize

int getSize()

getValidClassName

String getValidClassName()

isValidObject

MQObject isValidObject(obj)

remove

MQObject remove(<int> iIndex)

removeAll

void removeAll()

removeItem

void removeItem(<Object> item)

set

MQObject set(i, newO)

setM_itemXpath

void setM_itemXpath(<String> itemXpath)

setValidClassName

void setValidClassName(<String> className)

MapQuest Advantage JavaScript API Reference Documentation

Documentation generated by JSDoc on Tue Oct 16 08:04:12 2007