ucar.nc2.util
Class NamedAnything

java.lang.Object
  extended by ucar.nc2.util.NamedAnything
All Implemented Interfaces:
NamedObject

public class NamedAnything
extends java.lang.Object
implements NamedObject

NamedObject implementation

Since:
Apr 1, 2010
Author:
caron

Constructor Summary
NamedAnything(java.lang.String name, java.lang.String desc)
           
 
Method Summary
 java.lang.String getDescription()
          Get the object's description.
 java.lang.String getName()
          Get the object's name
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamedAnything

public NamedAnything(java.lang.String name,
                     java.lang.String desc)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: NamedObject
Get the object's name

Specified by:
getName in interface NamedObject
Returns:
object's name

getDescription

public java.lang.String getDescription()
Description copied from interface: NamedObject
Get the object's description. Use as a tooltip, for example

Specified by:
getDescription in interface NamedObject
Returns:
object's description

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object