com.ibm.uddi.datatypes
Class PhoneList

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

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

Corresponds to UDDI v2.0 sequence of 'phone' elements. Encapsulates a Vector of Phone objects.

See Also:
Serialized Form

Field Summary
static java.lang.String java_copyright
           
 
Constructor Summary
PhoneList()
          Constructs a new, empty PhoneList.
PhoneList(int initialSize)
          Constructs a new, empty PhoneList, with the initial capacity specified.
 
Method Summary
 void add(Phone phone)
          Adds a Phone to the PhoneList.
 Phone get(int index)
          Returns the Phone at the specified index.
 int size()
          Returns the number of Phone objects in the PhoneList.
 
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

PhoneList

public PhoneList()
Constructs a new, empty PhoneList.

PhoneList

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

add

public void add(Phone phone)
Adds a Phone to the PhoneList.
Parameters:
phone - the Phone to be added.

get

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

size

public int size()
Returns the number of Phone objects in the PhoneList.
Returns:
the number of Phone objects in the PhoneList.