Ruddi™ UDDI Client API
1.0

inspireit.uddi.collections
Class ServiceKeys

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

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

Collection of ServiceKeys.

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

Field Summary
protected  java.util.Vector serviceKeys
          Vector containing the service keys (ServiceKey objects).
 
Constructor Summary
ServiceKeys()
          ServiceKeys constructor.
 
Method Summary
 boolean add(ServiceKey serviceKey)
          Adds a ServiceKey to this ServiceKey set.
 boolean equals(java.lang.Object o)
          Tests an object for equality.
 UUID[] getUUIDs()
          Gets the array of UUID identifiers corresponding to this ServiceKey collection.
 ServiceKeyIterator iterator()
          Gets a ServiceKey iterator.
 boolean remove(ServiceKey serviceKey)
          Removes a ServiceKey from this ServiceKey set.
 int size()
          Gets the number of ServiceKeys of this collection.
 ServiceKey[] toArray()
          Turns this ServiceKeys collection to a ServiceKey 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

serviceKeys

protected java.util.Vector serviceKeys
Vector containing the service keys (ServiceKey objects).

Constructor Detail

ServiceKeys

public ServiceKeys()
ServiceKeys constructor.

Method Detail

add

public boolean add(ServiceKey serviceKey)
Adds a ServiceKey to this ServiceKey set.

Parameters:
serviceKey - The ServiceKey to add to this ServiceKey set.

remove

public boolean remove(ServiceKey serviceKey)
Removes a ServiceKey from this ServiceKey set.

Parameters:
serviceKey - The ServiceKey to remove from this ServiceKey set.

toArray

public ServiceKey[] toArray()
Turns this ServiceKeys collection to a ServiceKey array.

Returns:
a ServiceKey array

getUUIDs

public UUID[] getUUIDs()
Gets the array of UUID identifiers corresponding to this ServiceKey collection.

Returns:
the array of UUID identifiers corresponding to this ServiceKey collection.

iterator

public ServiceKeyIterator iterator()
Gets a ServiceKey iterator.

Returns:
a ServiceKey iterator

size

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

Returns:
the number of ServiceKeys 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 ServiceKeys are equal if they list the same ServiceKey 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.