org.apache.avalon.meta.info
Class StageDescriptor

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

public class StageDescriptor
extends Descriptor

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

Version:
$Revision: 1.1.1.1 $ $Date: 2003/09/24 08:15:10 $
Author:
Avalon Development Team
See Also:
Serialized Form

Constructor Summary
StageDescriptor(String urn)
          Constructor a stage descriptor without attributes.
StageDescriptor(String urn, Properties attributes)
          Constructor a stage descriptor with attributes.
 
Method Summary
 boolean equals(Object other)
          Test is the supplied object is equal to this object.
 String getKey()
          Return the stage identifier.
 int hashCode()
          Return the hashcode for the instance
 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

StageDescriptor

public StageDescriptor(String urn)
                throws NullPointerException
Constructor a stage descriptor without attributes.

Parameters:
urn - the stage identifier
Throws:
NullPointerException - if the classname argument is null

StageDescriptor

public StageDescriptor(String urn,
                       Properties attributes)
                throws NullPointerException
Constructor a stage descriptor with attributes.

Parameters:
urn - the stage identifier
attributes - a set of attribute values to associated with the stage
Throws:
NullPointerException - if the reference argument is null
Method Detail

getKey

public String getKey()
Return the stage identifier.

Returns:
the urn identifier

hashCode

public int hashCode()
Return the hashcode for the instance

Overrides:
hashCode in class Descriptor
Returns:
the instance hashcode

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

toString

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

Returns:
the string representation


Copyright © Apache Software Foundation. All Rights Reserved.