net.dpml.station.info
Class RegistryDescriptor.Entry

java.lang.Object
  extended by net.dpml.station.info.RegistryDescriptor.Entry
All Implemented Interfaces:
Serializable
Enclosing class:
RegistryDescriptor

public static final class RegistryDescriptor.Entry
extends Object
implements Serializable

Binding of key to descriptor.

See Also:
Serialized Form

Constructor Summary
RegistryDescriptor.Entry(String key, ApplicationDescriptor descriptor)
          Creation of a new entry.
 
Method Summary
 boolean equals(Object other)
          Tests for equality.
 ApplicationDescriptor getApplicationDescriptor()
          Return the application descriptor.
 String getKey()
          Return the entry key.
 int hashCode()
          Compute the hashcode.
 String toString()
          Return a string representation of the registry.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegistryDescriptor.Entry

public RegistryDescriptor.Entry(String key,
                                ApplicationDescriptor descriptor)
Creation of a new entry.

Parameters:
key - the profile key
descriptor - the application descriptor
Method Detail

getKey

public String getKey()
Return the entry key.

Returns:
the key

getApplicationDescriptor

public ApplicationDescriptor getApplicationDescriptor()
Return the application descriptor.

Returns:
the application descriptor

equals

public boolean equals(Object other)
Tests for equality. Two entries are considered equal if they have the same key and descriptor.

Overrides:
equals in class Object
Parameters:
other - the other object
Returns:
the equality status

hashCode

public int hashCode()
Compute the hashcode.

Overrides:
hashCode in class Object
Returns:
the hashcode value

toString

public String toString()
Return a string representation of the registry.

Overrides:
toString in class Object
Returns:
the string value