home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / un2maiq4 / pjjava / src / pj / util / mappable.java < prev    next >
Encoding:
Java Source  |  1996-08-14  |  1.6 KB  |  64 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.     @(#)Mappable.java  0.00 04-Jan-96
  15.  
  16.         Mappable objects have an object attribute
  17.         which may be set and retrieved.
  18.  
  19.     Authors:
  20.  
  21.         rphall   Rick Hall
  22.  
  23.  
  24.     Version Ident:
  25.  
  26.         $Header$
  27.  
  28.  
  29.     History:
  30.  
  31.         0.00 04-Jan-96  rphall      Initial Creation
  32.  
  33. ---------------------------------------------------------------------------*/
  34.  
  35. package pj.util;
  36.  
  37. import collections.ImplementationError;
  38. import java.lang.String;
  39.  
  40. /**
  41.  * Mappable objects have an object attribute which may be set and retrieved.
  42.  *
  43.  * @version 0.00 04-Jan-96
  44.  * @author  rphall
  45. */
  46. public interface Mappable extends Nameable
  47.     {
  48.  
  49.     // --- Public operations
  50.     /**
  51.      * @param object The mapped object.
  52.      * @exception ImplementationError thrown if object fails some
  53.      * implementation-dependent test
  54.     */
  55.     public void setMappedObject(Object object)
  56.         throws ImplementationError;
  57.  
  58.     /**
  59.      * @return The mapped object.
  60.     */
  61.     public Object getMappedObject();
  62.  
  63.     } // Mappable
  64.