org.apache.juddi.datatype
Class KeyedReference

java.lang.Object
  extended by org.apache.juddi.datatype.KeyedReference
All Implemented Interfaces:
java.io.Serializable, RegistryObject

public class KeyedReference
extends java.lang.Object
implements RegistryObject

Not just name / value. Also contains a tModel reference. This makes the identifier scheme extensible by allowing tModels to be used as conceptual namespace qualifiers.

Author:
Steve Viens (sviens@apache.org)
See Also:
Serialized Form

Constructor Summary
KeyedReference()
          Construct a new initialized keyedReference instance.
KeyedReference(java.lang.String name, java.lang.String value)
          Construct a new KeyedReference with a name and value.
KeyedReference(java.lang.String tModelKey, java.lang.String name, java.lang.String value)
          Construct a new KeyedReference with a given TModel String, key name and key value.
KeyedReference(TModelKey tModelKey, java.lang.String name, java.lang.String value)
          Construct a new KeyedReference with a given TModelKey, key name and key value.
 
Method Summary
 java.lang.String getKeyName()
          Returns the name of this keyedReference.
 java.lang.String getKeyValue()
          Returns the value of this keyedReference.
 java.lang.String getTModelKey()
          Returns the reference to the tModel.
 void setKeyName(java.lang.String name)
          Sets the name of this keyedReference.
 void setKeyValue(java.lang.String value)
          Sets the value of this keyedReference.
 void setTModelKey(java.lang.String key)
          Sets the reference to the tModel to the given reference.
 void setTModelKey(TModelKey key)
          Sets the reference to the tModel to the given reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyedReference

public KeyedReference()
Construct a new initialized keyedReference instance.


KeyedReference

public KeyedReference(java.lang.String name,
                      java.lang.String value)
Construct a new KeyedReference with a name and value.

Parameters:
name - The name of the name-value pair.
value - The value of the name-value pair.

KeyedReference

public KeyedReference(java.lang.String tModelKey,
                      java.lang.String name,
                      java.lang.String value)
Construct a new KeyedReference with a given TModel String, key name and key value.

Parameters:
tModelKey - The optional TModelKey String.
name - The name of the name-value pair.
value - The value of the name-value pair.

KeyedReference

public KeyedReference(TModelKey tModelKey,
                      java.lang.String name,
                      java.lang.String value)
Construct a new KeyedReference with a given TModelKey, key name and key value.

Parameters:
tModelKey - The optional TModelKey.
name - The name of the name-value pair.
value - The value of the name-value pair.
Method Detail

setKeyName

public void setKeyName(java.lang.String name)
Sets the name of this keyedReference.

Parameters:
name - The new name of this keyedReference

getKeyName

public java.lang.String getKeyName()
Returns the name of this keyedReference.

Returns:
The name of this keyedReference.

setKeyValue

public void setKeyValue(java.lang.String value)
Sets the value of this keyedReference.

Parameters:
value - The new value of this keyedReference

getKeyValue

public java.lang.String getKeyValue()
Returns the value of this keyedReference.

Returns:
The value of this keyedReference.

setTModelKey

public void setTModelKey(TModelKey key)
Sets the reference to the tModel to the given reference. The reference is represented by the key of the tModel. If this keyedReference doesn't point to a tModel anymore, the new reference must be null.

Parameters:
key - The key of the tModel to reference to.

setTModelKey

public void setTModelKey(java.lang.String key)
Sets the reference to the tModel to the given reference. The reference is represented by the key of the tModel. If this keyedReference doesn't point to a tModel anymore, the new reference must be null.

Parameters:
key - The key of the tModel to reference to.

getTModelKey

public java.lang.String getTModelKey()
Returns the reference to the tModel. Null is returned if this KeyedReference doesn't point to a tModel.

Returns:
The reference to the tModel.


Copyright © 2004-2007. All Rights Reserved.