net.spy.db
Class DBSP.NamedObject

java.lang.Object
  extended bynet.spy.db.DBSP.NamedObject
Direct Known Subclasses:
DBSP.Argument, DBSP.Parameter
Enclosing class:
DBSP

public abstract class DBSP.NamedObject
extends Object

Objects with names.


Constructor Summary
protected DBSP.NamedObject(String name)
          Get an instance of a named object with the given name.
 
Method Summary
 boolean equals(Object o)
          Test for equality.
 String getName()
          Get the name of this object.
 int hashCode()
          Get the hash code of the name of this object.
 String toString()
          String me.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBSP.NamedObject

protected DBSP.NamedObject(String name)
Get an instance of a named object with the given name.

Parameters:
name -
Method Detail

getName

public String getName()
Get the name of this object.


toString

public String toString()
String me.


hashCode

public int hashCode()
Get the hash code of the name of this object.

Returns:
getName().hashCode()

equals

public boolean equals(Object o)
Test for equality.

Parameters:
o - object to test against
Returns:
true if o is a NamedObject object with the same name