| Package | com.mapquest |
| Class | public class MQObjectCollection |
| Inheritance | MQObjectCollection MQObject |
| Subclasses | CoverageStyle, DBLayerQueryCollection, FeatureCollection, FeatureSpecifierCollection, GeocodeOptionsCollection, IntCollection, LatLngCollection, LocationCollection, LocationCollectionCollection, ManeuverCollection, MQSession, PointCollection, PrimitiveCollection, SignCollection, StrColCollection, StringCollection, TrekRouteCollection |
| Property | Defined by | ||
|---|---|---|---|
| itemXpath : String = "Item"
Value to represent the xpath of items in this collections
| MQObjectCollection | ||
| m_items : Array
Value to represent collection
| MQObjectCollection | ||
![]() | objectVersion : Number = 0
Value to represent the version of this object
| MQObject | |
![]() | xml : XML = null | MQObject | |
![]() | xpath : String | MQObject | |
| Method | Defined by | ||
|---|---|---|---|
|
MQObjectCollection(max:int)
Constructs a new MQObjectCollection object.
| MQObjectCollection | ||
|
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 | ||
|
Check if the array contains a specific object
| MQObjectCollection | ||
|
get(i:Number):*
Get the item at postion i
| MQObjectCollection | ||
|
getAt(i:Number):*
| MQObjectCollection | ||
|
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 | ||
![]() |
getObjectVersion():Number
Returns the version of this class.
| MQObject | |
![]() |
getProperty(path:String):String
Gets values from xml.
| MQObject | |
|
getSize():int
Get the maximum size.
| MQObjectCollection | ||
|
getValidClassName():String
Accessor method for ValidClassName
| MQObjectCollection | ||
![]() |
Create a copy of this object.
| MQObject | |
![]() |
internalCopyXML(obj:MQObject):XML
| MQObject | |
![]() |
internalCopyXMLx(obj:MQObject):String
| MQObject | |
|
isValidObject(obj:Object):Boolean
Is this object a valid object for this collection.
| MQObjectCollection | ||
![]() |
loadXml(xml:XML):void
New XML Handler
| MQObject | |
![]() |
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 | ||
![]() |
saveXml():XML
New XML Handler
| MQObject | |
|
Replace an object at position i and return the old object.
| MQObjectCollection | ||
|
setItemXpath(itemXpath:String):void
Sets the m_itemXpath string.
| MQObjectCollection | ||
![]() |
setProperty(path:String, value:Object):String
Sets values in xml.
| MQObject | |
|
setValidClassName(className:String):void
Accessor method for ValidClassName
| MQObjectCollection | ||
![]() |
setXpath(xpath:String):void
Sets the m_xpath object.
| MQObject | |
![]() |
writeExternal(output:IDataOutput):void
| MQObject | |
| Method | Defined by | ||
|---|---|---|---|
|
getItems():Array
Accessor method for m_items
| MQObjectCollection | ||
![]() |
getXML():XML
Returns the m_xmlDoc object.
| MQObject | |
![]() |
getXpath():String
Returns the xpath string.
| MQObject | |
![]() |
setXML(xml:XML):void
Sets the m_xmlDoc object.
| MQObject | |
| itemXpath | property |
protected var itemXpath:String = "Item"Value to represent the xpath of items in this collections
| m_items | property |
protected var m_items:ArrayValue to represent collection
| MQObjectCollection | () | constructor |
public function MQObjectCollection(max:int)Constructs a new MQObjectCollection object.
Parametersmax:int |
| add | () | method |
public function add(obj:MQObject):intAdds this object to the array if it has not reached the maximum size. Type Checking is left to the descendent class.
Parametersobj:MQObject |
int — The new number of items in the array or nothing if it is unsuccessful
|
| addInteger | () | method |
public function addInteger(integer:int):intAdds this integer to the array if it has not reached the maximum size. Type Checking is left to the descendent class.
Parametersinteger:int |
int — The new number of items in the array or nothing if it is unsuccessful
|
| addString | () | method |
public function addString(str:String):intAdds this string to the array if it has not reached the maximum size. Type Checking is left to the descendent class.
Parametersstr:String |
int — The new number of items in the array or nothing if it is unsuccessful
|
| append | () | method |
public function append(collection:MQObjectCollection):voidAppend a collection to this one
Parameterscollection:MQObjectCollection — collection The collection to append to this one
|
| contains | () | method |
public function contains(item:MQObject):BooleanCheck if the array contains a specific object
Parametersitem:MQObject — item The object to search for
|
Boolean — True if the object is in the collection, false otherwise
|
| get | () | method |
public function get(i:Number):*Get the item at postion i
Parametersi:Number — i The position in the array from which to pull the object
|
* — The object
|
| getAt | () | method |
public function getAt(i:Number):*Parameters
i:Number |
* |
| getById | () | method |
public function getById(strId:String):MQObjectReturn the object, if it exists, with the id strId
ParametersstrId:String — strId The id to check for.
|
MQObject —
The object if it exists.
|
| getClassName | () | method |
public override function getClassName():StringReturns the text name of this class.
ReturnsString — The text name of this class.
|
| getItems | () | method |
protected function getItems():ArrayAccessor method for m_items
ReturnsArray — The Array of m_items
|
| getItemXpath | () | method |
public function getItemXpath():StringReturns the m_itemXpath string.
ReturnsString — The m_itemXpath string.
|
| getSize | () | method |
public function getSize():intGet the maximum size.
Returnsint — The size of the array
|
| getValidClassName | () | method |
public function getValidClassName():StringAccessor method for ValidClassName
ReturnsString — Value of ValidClassName
|
| isValidObject | () | method |
public function isValidObject(obj:Object):BooleanIs this object a valid object for this collection.
Parametersobj:Object |
Boolean — True if valid, false otherwise
|
| remove | () | method |
public function remove(iIndex:int):*Remove the item at postion iIndex
ParametersiIndex:int — iIndex The position in the array from which to pull the object
|
* — The object to be removed
|
| removeAll | () | method |
public function removeAll():voidRemove all the items in the array
| removeItem | () | method |
public function removeItem(item:MQObject):voidRemove an item by it's pointer.
Parametersitem:MQObject — item pointer to the item to remove.
|
| set | () | method |
public function set(i:Number, newO:MQObject):MQObjectReplace an object at position i and return the old object.
Parametersi:Number |
|
newO:MQObject |
MQObject —
True if valid, false otherwise
|
| setItemXpath | () | method |
public function setItemXpath(itemXpath:String):voidSets the m_itemXpath string.
ParametersitemXpath:String — itemXpath the String m_xpath is set to.
|
| setValidClassName | () | method |
public function setValidClassName(className:String):voidAccessor method for ValidClassName
ParametersclassName:String — className Value of ValidClassName
|