wt.admin.cache
Class DomainPathKey

java.lang.Object
  extended bywt.admin.cache.DomainPathKey
All Implemented Interfaces:
Serializable

class DomainPathKey
extends Object
implements Serializable

This class defines a Domain Path key for the AdminDomainCache. Domain paths are distinguished by their Domain path and the Container the path is relative to.


Field Summary
private  ObjectIdentifier containerOID
           
private  String domainPath
           
private  int hashcode
           
 
Constructor Summary
(package private) DomainPathKey()
          No-arg constructor.
(package private) DomainPathKey(ObjectIdentifier containerOID, String domainPath)
          Construct an instance with a specific Container OID and Domain path.
 
Method Summary
 boolean equals(Object rhs)
          Returns true if a specified object matches this key.
(package private)  ObjectIdentifier getContainerOID()
          Returns the Container OID associated with the key.
(package private)  String getDomainPath()
          Returns the Domain path associated with the key.
 int hashCode()
          Returns the hashcode of the key.
(package private)  void setContainerOID(ObjectIdentifier containerOID)
          Sets the Container OID associated with the key.
(package private)  void setDomainPath(String domainPath)
          Sets the Domain path associated with the key.
private  void setHashCode()
          Sets the hashcode of the instance.
 String toString()
          Returns a String rendering of the key.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

containerOID

private ObjectIdentifier containerOID

domainPath

private String domainPath

hashcode

private int hashcode
Constructor Detail

DomainPathKey

DomainPathKey()
No-arg constructor.


DomainPathKey

DomainPathKey(ObjectIdentifier containerOID,
              String domainPath)
Construct an instance with a specific Container OID and Domain path.

Parameters:
containerOID - The OID of the Container the specified domainPath is relative to.
domainPath - The Domain path.
Method Detail

setContainerOID

void setContainerOID(ObjectIdentifier containerOID)
Sets the Container OID associated with the key.

Parameters:
containerOID - The Container OID

getContainerOID

ObjectIdentifier getContainerOID()
Returns the Container OID associated with the key.

Returns:
The Container OID

setDomainPath

void setDomainPath(String domainPath)
Sets the Domain path associated with the key.

Parameters:
domainPath - The Domain path.

getDomainPath

String getDomainPath()
Returns the Domain path associated with the key.

Returns:
The Domain path.

equals

public boolean equals(Object rhs)
Returns true if a specified object matches this key.

Parameters:
rhs - The object to match against this key.
Returns:
true if the object matches this key; otherwise, false.

toString

public String toString()
Returns a String rendering of the key.

Returns:
The String rendering.

hashCode

public int hashCode()
Returns the hashcode of the key.

Returns:
The hashcode

setHashCode

private void setHashCode()
Sets the hashcode of the instance.