net.mtu.eggplant.util
Class DefaultNamed
java.lang.Object
net.mtu.eggplant.util.DefaultBean
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
DefaultNamed
public DefaultNamed(String name)
- standard constructor
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