com.ibm.tws.objects.model
Class DomainKey

java.lang.Object
  extended bycom.ibm.tws.objects.model.DomainKey
All Implemented Interfaces:
java.io.Serializable, TWSKey

public class DomainKey
extends java.lang.Object
implements TWSKey

This object represents a domain external key, including fields used to identify a domain in TWS external interfaces.

See Also:
Domain, Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
DomainKey()
          Creates an empty DomainKey.
DomainKey(java.lang.String domainName)
          Creates a DomainKey with the specified name.
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if all fields of this DomainKey object are equal to those of the given one.
 java.lang.String getName()
          Returns the domain name.
 int hashCode()
          Returns a hash code for this DomainKey object.
static DomainKey parseKey(java.lang.String key)
          Parses data from the specified string and creates a new DomainKey.
 void setName(java.lang.String value)
          Sets the domain name.
 java.lang.String toString()
          Returns a string representation of this DomainKey object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.

Constructor Detail

DomainKey

public DomainKey()
Creates an empty DomainKey.


DomainKey

public DomainKey(java.lang.String domainName)
Creates a DomainKey with the specified name.

Parameters:
domainName - The domain name.
Method Detail

parseKey

public static DomainKey parseKey(java.lang.String key)
Parses data from the specified string and creates a new DomainKey.

Parameters:
key - The string containing key data.
Returns:
A new DomainKey, or null if the string does not contain a valid key.

getName

public java.lang.String getName()
Returns the domain name.

Specified by:
getName in interface TWSKey
Returns:
The domain name.

setName

public void setName(java.lang.String value)
Sets the domain name.

Parameters:
value - The domain name.

equals

public boolean equals(java.lang.Object object)
Returns true if all fields of this DomainKey object are equal to those of the given one.

Parameters:
object - The object to be compared with this one.
Returns:
True if this object equals to the given one.

hashCode

public int hashCode()
Returns a hash code for this DomainKey object.

Returns:
The object's hash code.

toString

public java.lang.String toString()
Returns a string representation of this DomainKey object.

Returns:
A text string including all DomainKey fields.


Copyright © 2005 IBM All Rights Reserved.