Ruddi™ UDDI Client API
1.0

inspireit.uddi.collections
Class Phones

java.lang.Object
  |
  +--inspireit.uddi.collections.Phones
All Implemented Interfaces:
java.io.Serializable, inspireit.uddi.util.visitors.UDDIElement

public class Phones
extends java.lang.Object
implements java.io.Serializable, inspireit.uddi.util.visitors.UDDIElement

Collection of Phones.

Author:
Bertrand Fontaine, INSPIRE IT $Revision: 1.2 $
See Also:
Serialized Form

Field Summary
protected  java.util.Vector phones
          Vector containing the phone numbers (Phone objects).
 
Constructor Summary
Phones()
          Phones constructor.
 
Method Summary
 boolean add(Phone phone)
          Adds a Phone to this Phone set.
 boolean equals(java.lang.Object o)
          Tests an object for equality.
 PhoneIterator iterator()
          Gets a Phone iterator.
 boolean remove(Phone phone)
          Removes a Phone from this Phone set.
 int size()
          Gets the number of Phones of this collection.
 Phone[] toArray()
          Turns this Phones collection to a Phone array.
 java.lang.Object visit(inspireit.uddi.util.visitors.UDDIVisitor visitor)
          Visits this UDDI element.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

phones

protected java.util.Vector phones
Vector containing the phone numbers (Phone objects).

Constructor Detail

Phones

public Phones()
Phones constructor.

Method Detail

add

public boolean add(Phone phone)
Adds a Phone to this Phone set.

Parameters:
phone - The Phone to add to this Phone set.

remove

public boolean remove(Phone phone)
Removes a Phone from this Phone set.

Parameters:
phone - The Phone to remove from this Phone set.

iterator

public PhoneIterator iterator()
Gets a Phone iterator.

Returns:
a Phone iterator

toArray

public Phone[] toArray()
Turns this Phones collection to a Phone array.

Returns:
a Phone array

size

public int size()
Gets the number of Phones of this collection.

Returns:
the number of Phones of this collection

visit

public java.lang.Object visit(inspireit.uddi.util.visitors.UDDIVisitor visitor)
Visits this UDDI element.

Specified by:
visit in interface inspireit.uddi.util.visitors.UDDIElement
Parameters:
visitor - The visiting UDDI object.

equals

public boolean equals(java.lang.Object o)
Tests an object for equality. Two Phones are equal if they list the same Phone set.

Overrides:
equals in class java.lang.Object
Parameters:
o - The object to test for equality.
Returns:
true if o and this object are equal; false otherwise

Ruddi™ UDDI Client API
1.0

Download now! | Submit a bug or feature
(c) 2003 INSPIRE IT
Bld Brand Whitlock 109
1200 Brussels, Belgium
All Rights Reserved.