ucar.unidata.util
Class NamedThing

java.lang.Object
  extended by ucar.unidata.util.NamedThing
All Implemented Interfaces:
NamedObject
Direct Known Subclasses:
AddeServer, AddeServer.Group

public class NamedThing
extends Object
implements NamedObject

Holds a name and a description

Version:
$Revision: 1.2 $Date: 2007/06/28 14:42:03 $
Author:
IDV development team

Constructor Summary
NamedThing()
          _more_
NamedThing(String name)
          _more_
NamedThing(String name, String description)
          _more_
 
Method Summary
 boolean equals(Object o)
          _more_
 String getDescription()
          Get the Description property.
 String getName()
          Get the Name property.
 int hashCode()
           
 void setDescription(String value)
          Set the Description property.
 void setName(String value)
          Set the Name property.
 String toString()
          _more_
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamedThing

public NamedThing()
_more_


NamedThing

public NamedThing(String name)
_more_

Parameters:
name - _more_

NamedThing

public NamedThing(String name,
                  String description)
_more_

Parameters:
name - _more_
description - _more_
Method Detail

setName

public void setName(String value)
Set the Name property.

Specified by:
setName in interface NamedObject
Parameters:
value - The new value for Name

getName

public String getName()
Get the Name property.

Specified by:
getName in interface NamedObject
Returns:
The Name

setDescription

public void setDescription(String value)
Set the Description property.

Parameters:
value - The new value for Description

getDescription

public String getDescription()
Get the Description property.

Specified by:
getDescription in interface NamedObject
Returns:
The Description

toString

public String toString()
_more_

Overrides:
toString in class Object
Returns:
_more_

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
_more_

Overrides:
equals in class Object
Parameters:
o - _more_
Returns:
_more_