|
MapQuest Advantage JavaScript API Reference Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--MQObject
|
+--MQObjectCollection
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 |
<private> Array m_items
<private> String m_itemXpath
<private> int m_maxItems
<private> String validClassName
| Constructor Detail |
MQObjectCollection(<int> max)
max - The initial size of the collection array
strMQObjectType - The type of MQObject descedent to check for
| Method Detail |
int add(obj)
void append(<MQObjectCollection> collection)
collection - The collection to append to this one
Boolean contains(<MQObject> item)
item - The object to search for
Object get(<int> i)
i - The position in the array from which to pull the object
Object getAt(<int> i)
i - The position in the array from which to pull the object
Object getById(<String> strId)
strId - The id to check for.
String getClassName()
Array getM_Items()
String getM_itemXpath()
int getObjectVersion()
int getSize()
String getValidClassName()
MQObject isValidObject(obj)
MQObject remove(<int> iIndex)
iIndex - The position in the array from which to pull the object
void removeAll()
void removeItem(<Object> item)
item - pointer to the item to remove.
MQObject set(i, newO)
void setM_itemXpath(<String> itemXpath)
itemXpath - the String m_xpath is set to.
void setValidClassName(<String> className)
className - Value of ValidClassName
|
MapQuest Advantage JavaScript API Reference Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||