org.apache.avalon.meta.info
Class ExtensionDescriptor

java.lang.Object
  extended byorg.apache.avalon.meta.info.Descriptor
      extended byorg.apache.avalon.meta.info.ExtensionDescriptor
All Implemented Interfaces:
Serializable

public final class ExtensionDescriptor
extends Descriptor

A descriptor that describes a name and inteface of a lifecycle stage.

Version:
$Revision: 1.5 $ $Date: 2003/07/18 08:26:29 $
Author:
Avalon Development Team
See Also:
Serialized Form

Constructor Summary
ExtensionDescriptor(String urn)
          Creation of an extension descriptor without attributes.
ExtensionDescriptor(String urn, Properties attributes)
          Creation of a extension descriptor with attributes.
 
Method Summary
 boolean equals(Object other)
          Test is the supplied object is equal to this object.
 String getKey()
          Return the interface reference
 int hashCode()
          Return the hashcode for the object.
 String toString()
          Return a stringified representation of the instance.
 
Methods inherited from class org.apache.avalon.meta.info.Descriptor
getAttribute, getAttribute, getAttributeNames, getProperties
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtensionDescriptor

public ExtensionDescriptor(String urn)
                    throws NullPointerException
Creation of an extension descriptor without attributes.

Parameters:
urn - the extension identifier
Throws:
NullPointerException - if the urn identifer is null

ExtensionDescriptor

public ExtensionDescriptor(String urn,
                           Properties attributes)
                    throws NullPointerException
Creation of a extension descriptor with attributes.

Parameters:
urn - the extension identifier
attributes - a set of attributes to associate with the extension
Throws:
NullPointerException - if the supplied urn is null
Method Detail

getKey

public String getKey()
Return the interface reference

Returns:
the reference.

equals

public boolean equals(Object other)
Test is the supplied object is equal to this object.

Overrides:
equals in class Descriptor
Parameters:
other - the object to compare this object with
Returns:
true if the object are equivalent

hashCode

public int hashCode()
Return the hashcode for the object.

Overrides:
hashCode in class Descriptor
Returns:
the hashcode value

toString

public String toString()
Return a stringified representation of the instance.

Returns:
the string representation


Copyright © Apache Software Foundation. All Rights Reserved.