net.mtu.eggplant.util
Class DefaultNamed

java.lang.Object
  extended by net.mtu.eggplant.util.DefaultBean
      extended by net.mtu.eggplant.util.DefaultNamed
All Implemented Interfaces:
Serializable, Bean, Named

public class DefaultNamed
extends DefaultBean
implements Named

generic class that allows objects to have names and listeners

Version:
$Revision$
See Also:
Serialized Form

Constructor Summary
DefaultNamed(String name)
          standard constructor
 
Method Summary
protected  void fireNameChange(String old, String clone)
           
 String getName()
          get the name of the object.
 void setName(String n)
          Set the name for the object.
 String toString()
           
 
Methods inherited from class net.mtu.eggplant.util.DefaultBean
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultNamed

public DefaultNamed(String name)
standard constructor

Method Detail

setName

public final void setName(String n)
Set the name for the object. This is a bound property.

Parameters:
n - the new name

getName

public final String getName()
get the name of the object.

Specified by:
getName in interface Named
Returns:
the name

fireNameChange

protected final void fireNameChange(String old,
                                    String clone)

toString

public String toString()
Overrides:
toString in class Object