home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / iis4_07.cab / Map.java < prev    next >
Text File  |  1997-10-25  |  3KB  |  47 lines

  1. /*  ********************************************************************************
  2.     Map.java ***********************************************************************
  3.     ********************************************************************************  */
  4.  
  5. package aspcomp;
  6.  
  7. import java.util.*;
  8. import com.ms.com.*;
  9.  
  10. /**
  11.  * Interface that defines common typed data access methods.
  12.  */
  13.  
  14. public interface Map 
  15. {
  16.  
  17. /*  ********************************************************************************
  18.     External (Public) Interface Methods ********************************************
  19.     ********************************************************************************  */
  20.  
  21.     int     getType(String name);
  22.  
  23.     Object  getObject(String name)                  throws ClassCastException;
  24.     boolean getBoolean(String name)                 throws ClassCastException;
  25.     byte    getByte(String name)                    throws ClassCastException;
  26.     short   getShort(String name)                   throws ClassCastException;
  27.     char    getChar(String name)                    throws ClassCastException;
  28.     int     getInt(String name)                     throws ClassCastException;
  29.     long    getLong(String name)                    throws ClassCastException;
  30.     float   getFloat(String name)                   throws ClassCastException;
  31.     double  getDouble(String name)                  throws ClassCastException;
  32.     String  getString(String name)                  throws ClassCastException;
  33.     Date    getDate(String name)                    throws ClassCastException;
  34.     Variant getVariant(String name)                 throws ClassCastException;
  35.  
  36.     void    setObject(String name, Object o)        throws AspComponentException;
  37.     void    setBoolean(String name,boolean b)       throws AspComponentException;
  38.     void    setByte(String name,byte b)             throws AspComponentException;
  39.     void    setShort(String name,short s)           throws AspComponentException;
  40.     void    setInt(String name,int i)               throws AspComponentException;
  41.     void    setFloat(String name,float f)           throws AspComponentException;
  42.     void    setDouble(String name,double d)         throws AspComponentException;
  43.     void    setString(String name,String str)       throws AspComponentException;
  44.     void    setDate(String name, Date d)            throws AspComponentException;
  45.     void    setVariant(String name, Variant var)    throws AspComponentException;
  46. }
  47.