FOM Reference > DOM Support > XPath Extensions > fxArray interface
  
fxArray interface
Objects of this class represent collections of objects. Depending on the particular type of collection, there may be constraints on the objects contained in the collection, such as all being of a certain class.
Arrays and the objects they contain cannot be modified directly from outside. In some situations the object providing the array also offers methods that modify the contents of the array.
Generally, there are two different ways to access objects contained in an fArray: they may be accessed by index like in conventional arrays, or they can be accessed by name, similar to maps or hashes.
length attribute
Returns the number of elements in this array.
length
Access
read-only
Returns
unsigned int
getName method
Returns the name of an item stored at the given index.
getNameindex
Parameters
unsigned intindex
The index of the item to be set.
Returns
String. The name of the item at the given index.
getNamedItem method
Return the item with the given name.
getNamedItemname
Parameters
Stringname
The name of the desired item.
Returns
Object. The item stored under the given name.
hasNamedItem method
Determines if this array has a named item.
hasNamedItemname
Parameters
Stringname
The name of the desired item.
Returns
booleantrue if this named item exists in the array, false otherwise.
item method
Return the item stored at the given index.
itemindex
Parameters
unsigned intindex
The index of the item to be returned.
Returns
Object. The item stored at the given index.