addElement()

Add a business object to this business object array.

Syntax

void addElement(BusObj element)
 

Parameters

element
A business object to add to the array.

Exceptions

CollaborationException--The addElement() method can set the following exception type for this exception:

Examples

The following example uses the getBusObjArray() method to retrieve an array of business objects called itemList from the business object order. The array is assigned to items, and then a new business object is added to items.

BusObjArray items = order.getBusObjArray("itemList");
 items.addElement(new BusObj("oneItem"));
 

Copyright IBM Corp. 2003