
    fJ                     @    d Z ddlmZ  G d de      Z G d de      Zy)zQ

Revision information:
$Id: Mapping.py 40218 2005-11-18 14:39:19Z andreasjung $
    )	Interfacec                   $    e Zd ZdZd ZddZd Zy)IReadMappingzBasic mapping interface
    c                      y)z^Get a value for a key

        A KeyError is raised if there is no value for the key.
        N keys    p/var/dept/share/cheung/public_html/OutSchool/python/env/lib/python3.12/site-packages/Interface/Common/Mapping.py__getitem__zIReadMapping.__getitem__           Nc                      y)zaGet a value for a key

        The default is returned if there is no value for the key.
        Nr   )r	   defaults     r
   getzIReadMapping.get    r   r   c                      y)z,Tell if a key exists in the mapping
        Nr   r   s    r
   has_keyzIReadMapping.has_key&   r   r   )N)__name__
__module____qualname____doc__r   r   r   r   r   r
   r   r      s    r   r   c                   (    e Zd ZdZd Zd Zd Zd Zy)IEnumerableMappingz2Mapping objects whose items can be enumerated
    c                       y)z.Return the keys of the mapping object
        Nr   r   r   r
   keyszIEnumerableMapping.keys.   r   r   c                       y)z0Return the values of the mapping object
        Nr   r   r   r
   valueszIEnumerableMapping.values2   r   r   c                       y)z/Return the items of the mapping object
        Nr   r   r   r
   itemszIEnumerableMapping.items6   r   r   c                       y)z#Return the number of items
        Nr   r   r   r
   __len__zIEnumerableMapping.__len__:   r   r   N)r   r   r   r   r   r   r   r    r   r   r
   r   r   *   s    r   r   N)r   r   r   r   r   r   r
   <module>r!      s'     9 ( r   