Ruddi™ UDDI Client API
1.0

inspireit.uddi.collections
Class Contacts

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

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

Collection of Contacts.

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

Field Summary
protected  java.util.Vector contacts
          Vector containing the binding templates (Contact objects).
 
Constructor Summary
Contacts()
          Contacts constructor.
 
Method Summary
 boolean add(Contact contact)
          Adds a Contact to this Contact set.
 boolean equals(java.lang.Object o)
          Tests an object for equality.
 ContactIterator iterator()
          Gets a Contact iterator.
 boolean remove(Contact contact)
          Removes a Contact from this Contact set.
 int size()
          Gets the number of Contacts part of this collection.
 Contact[] toArray()
          Turns this Contacts collection to a Contact 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

contacts

protected java.util.Vector contacts
Vector containing the binding templates (Contact objects).

Constructor Detail

Contacts

public Contacts()
Contacts constructor.

Method Detail

add

public boolean add(Contact contact)
Adds a Contact to this Contact set.

Parameters:
contact - The Contact to add to this Contact set.

remove

public boolean remove(Contact contact)
Removes a Contact from this Contact set.


size

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

Returns:
the number of Contacts part of this collection

iterator

public ContactIterator iterator()
Gets a Contact iterator.

Returns:
a Contact iterator

toArray

public Contact[] toArray()
Turns this Contacts collection to a Contact array.

Returns:
a Contact array

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 Contacts are equal if they list the same Contact 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.