Ruddi™ UDDI Client API
1.0

inspireit.uddi.base
Class KeyedReference

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

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

KeyedReference is a service class that represents a namespace qualified name-value pair. Depending on the use context, this structure can be used within different convention frameworks.

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

Field Summary
protected  java.lang.String keyName
          The name part of the name/value pair.
protected  java.lang.String keyValue
          The value part of the name/value pair.
protected  TModelKey tModelKey
          TModel pointer.
 
Constructor Summary
KeyedReference(java.lang.String keyValue)
          Deprecated. as of UDDI V3.0
KeyedReference(java.lang.String keyName, java.lang.String keyValue)
          Deprecated. as of UDDI V3.0
KeyedReference(TModelKey tModelKey, java.lang.String keyValue)
          KeyedReference constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
          Checks whether an object is equal to this KeyedReference.
 java.lang.String getKeyName()
          Gets the name part of the name/value pair.
 java.lang.String getKeyValue()
          Gets the value of the name/value pair.
 TModelKey getTModelKey()
          Gets the eventual TModel pointer.
 void setKeyName(java.lang.String keyName)
          Sets the name part of the name/value pair.
 void setTModelKey(TModelKey tModelKey)
          Sets a TModel pointer.
 java.lang.Object visit(inspireit.uddi.util.visitors.UDDIVisitor visitor)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tModelKey

protected TModelKey tModelKey
TModel pointer.


keyName

protected java.lang.String keyName
The name part of the name/value pair.


keyValue

protected java.lang.String keyValue
The value part of the name/value pair.

Constructor Detail

KeyedReference

public KeyedReference(java.lang.String keyName,
                      java.lang.String keyValue)
Deprecated. as of UDDI V3.0

KeyedReference constructor.

Parameters:
keyName - The name part of the name/value pair.
keyValue - The value part of the name/value pair.

KeyedReference

public KeyedReference(java.lang.String keyValue)
Deprecated. as of UDDI V3.0

KeyedReference constructor.

Parameters:
keyValue - The value part of the name/value pair.
Since:
UDDI V2.0

KeyedReference

public KeyedReference(TModelKey tModelKey,
                      java.lang.String keyValue)
KeyedReference constructor.

Parameters:
tModelKey - TModel pointer.
keyValue - The value part of the name/value pair.
Since:
UDDI V3.0
Method Detail

getKeyName

public java.lang.String getKeyName()
Gets the name part of the name/value pair.

Returns:
the name part of the name/value pair.

setKeyName

public void setKeyName(java.lang.String keyName)
Sets the name part of the name/value pair.

Parameters:
keyName - The name part of the name/value pair.
Since:
UDDI V2.0

getKeyValue

public java.lang.String getKeyValue()
Gets the value of the name/value pair.

Returns:
the value of the name/value pair

getTModelKey

public TModelKey getTModelKey()
Gets the eventual TModel pointer.

Returns:
the eventual TModel pointer

setTModelKey

public void setTModelKey(TModelKey tModelKey)
Sets a TModel pointer.

Parameters:
tModelKey - The TModel pointer to associate to KeyedReference

visit

public java.lang.Object visit(inspireit.uddi.util.visitors.UDDIVisitor visitor)
Specified by:
visit in interface inspireit.uddi.util.visitors.UDDIElement

equals

public boolean equals(java.lang.Object o)
Checks whether an object is equal to this KeyedReference. Two KeyedReferences are equal if they have same keyName, KeyValue and TModelKey attribute (when specified).

Overrides:
equals in class java.lang.Object
Parameters:
o - The object to test for equality.
Returns:
true if o and this KeyedReference 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.