com.ibm.uddi.datatypes
Class ContactList

java.lang.Object
  |
  +--com.ibm.uddi.datatypes.ContactList
All Implemented Interfaces:
java.io.Serializable

public class ContactList
extends java.lang.Object
implements java.io.Serializable

Corresponds to UDDI v2.0 sequence of 'contact' elements. Encapsulates a Vector of Contact objects.

See Also:
Serialized Form

Field Summary
static java.lang.String java_copyright
           
 
Constructor Summary
ContactList()
          Constructs a new, empty ContactList.
ContactList(int initialSize)
          Constructs a new, empty ContactList, with the initial capacity specified.
 
Method Summary
 void add(Contact contact)
          Adds a Contact to the ContactList.
 Contact get(int index)
          Returns the Contact at the specified index.
 int size()
          Returns the number of Contact objects in the ContactList.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

java_copyright

public static final java.lang.String java_copyright
Constructor Detail

ContactList

public ContactList()
Constructs a new, empty ContactList.

ContactList

public ContactList(int initialSize)
Constructs a new, empty ContactList, with the initial capacity specified.
Parameters:
initialSize - the initial capacity of the ContactList.
Method Detail

add

public void add(Contact contact)
Adds a Contact to the ContactList.
Parameters:
contact - the Contact to be added.

get

public Contact get(int index)
Returns the Contact at the specified index.
Parameters:
int - the index of the Contact to be retrieved.
Returns:
the Contact at the specified index.

size

public int size()
Returns the number of Contact objects in the ContactList.
Returns:
the number of Contact objects in the ContactList.