home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / un2maiq4 / pjjava / src / pj / util / nameable.java < prev    next >
Encoding:
Java Source  |  1996-08-14  |  1.4 KB  |  59 lines

  1. /*---------------------------------------------------------------------------
  2.  
  3.     Written by the Personal Journal developers of Dow Jones & Company, Inc.
  4.  
  5.     Dow Jones makes no representations or warranties about 
  6.     the suitability of this software, either express or 
  7.     implied, including but not limited to the implied warranties 
  8.     of merchantability, fitness for a particular purpose, 
  9.     or non-infringement.  Dow Jones will not be liable for 
  10.     any damages suffered by a user as a result of using, 
  11.     modifying or distributing this software or its derivatives.
  12.  
  13.  
  14.     @(#)Nameable.java  0.00 04-Jan-96
  15.  
  16.         Nameable objects have a string attribute
  17.         which may be set and retrieved.
  18.  
  19.     Authors:
  20.  
  21.         rphall   Rick Hall
  22.  
  23.     Version Ident:
  24.  
  25.         $Header:$
  26.  
  27.     History:
  28.  
  29.         0.00 04-Jan-96  rphall      Initial Creation
  30.  
  31. ---------------------------------------------------------------------------*/
  32.  
  33. package pj.util;
  34.  
  35. import java.lang.String;
  36.  
  37. /**
  38.  * Nameable objects have a string attribute which may be set and retrieved.
  39.  *
  40.  * @version 0.00 04-Jan-96
  41.  * @author  rphall
  42. */
  43. public interface Nameable
  44.     {
  45.  
  46.     // --- Public operations
  47.  
  48.     /**
  49.      * @param name  The name for an object.
  50.     */
  51.     public void setName(String name);
  52.  
  53.     /**
  54.      * @return  The name of an object.
  55.     */
  56.     public String getName();
  57.  
  58.     } // Nameable
  59.