Ruddi™ UDDI Client API
1.0

inspireit.uddi.base
Class UDDIKey

java.lang.Object
  |
  +--inspireit.uddi.base.UDDIKey
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BindingKey, BusinessKey, EntityKey, FromKey, ServiceKey, TModelKey, ToKey

public abstract class UDDIKey
extends java.lang.Object
implements java.io.Serializable

The base class for all UDDI keys: BusinessKey, ServiceKey, etc.

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

Field Summary
protected  java.lang.String uddiKey
          The String representation of the UDDI key.
protected  java.net.URI uriKey
          The URI representation of the UDDI key.
protected  UUID uuidKey
          The UUID representation of the UDDI key.
 
Constructor Summary
UDDIKey(java.lang.String uddiKey)
          UDDIKey constructor.
UDDIKey(java.net.URI uriKey)
          UDDIKey constructor.
UDDIKey(UUID uuidKey)
          UDDIKey constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
          Checks whether this UDDIKey is equal to a passed Object o.
 java.net.URI getURI()
          Gets the URI corresponding to the key.
 UUID getUUID()
          Gets the UUID corresponding to the key.
 java.lang.String toString()
          Gets a String representation of the UDDI key.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

uddiKey

protected java.lang.String uddiKey
The String representation of the UDDI key.


uuidKey

protected UUID uuidKey
The UUID representation of the UDDI key.


uriKey

protected java.net.URI uriKey
The URI representation of the UDDI key.

Constructor Detail

UDDIKey

public UDDIKey(java.lang.String uddiKey)
UDDIKey constructor.

Parameters:
uddiKey - The String representation of the key.

UDDIKey

public UDDIKey(UUID uuidKey)
UDDIKey constructor.

Parameters:
uuidKey - The UUID representation of the key.

UDDIKey

public UDDIKey(java.net.URI uriKey)
UDDIKey constructor.

Parameters:
uriKey - The URI representation of the key.
Method Detail

getUUID

public UUID getUUID()
Gets the UUID corresponding to the key. If this is a UDDI key with a post-UDDI V3.0 format, the key is automatically converted into a UUID using the key convertion algorithm recommended by the UDDI V3.0 specification.

Returns:
the UUID representation of the key

getURI

public java.net.URI getURI()
Gets the URI corresponding to the key. If this is a UDDI key with a post-UDDI V3.0 format, the key is automatically converted into a URI using the key convertion algorithm detailed in the UDDI V3.0 specification.

Returns:
the URI representation of the key

toString

public java.lang.String toString()
Gets a String representation of the UDDI key.

Overrides:
toString in class java.lang.Object
Returns:
a String representation of the UDDI key

equals

public boolean equals(java.lang.Object o)
Checks whether this UDDIKey is equal to a passed Object o.

Overrides:
equals in class java.lang.Object
Parameters:
o - The Object to check for equality.
Returns:
true if o is equal to this UDDIKey; 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.