ucar.nc2.util
Class NamedAnything

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

public class NamedAnything
extends Object
implements NamedObject

NamedObject implementation

Since:
Apr 1, 2010
Author:
caron

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

Constructor Detail

NamedAnything

public NamedAnything(String name,
                     String desc)
Method Detail

getName

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

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

getDescription

public 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 String toString()
Overrides:
toString in class Object


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.