
    f                        d dl Z d dlZ G d de j                        Z G d de      Z G d de j                        Z G d d	e j                        Z G d
 de      Z G d deeee      Z	 G d de      Z
 G d de
      Z ej                   ed      e
ee j                  f        ej                   eg       e
eef        ej                   ei       eeef       y)    Nc                       e Zd ZdZd Zy)Mappingzanything supporting __getitem__c                      y)zhGet the value for the given key

        Raise a key error if the key if not in the collection.
        N keys    i/var/dept/share/cheung/public_html/OutSchool/python/env/lib/python3.12/site-packages/Interface/Mapping.py__getitem__zMapping.__getitem__           N)__name__
__module____qualname____doc__r
   r   r   r	   r   r      s
    %r   r   c                       e Zd Zd ZddZy)QueryMappingc                      y)z7Check whether the object has an item with the given keyNr   r   s    r	   has_keyzQueryMapping.has_key   r   r   Nc                      y)zjGet the value for the given key

        Return the default if the key is not in the  collection.
        Nr   )r   defaults     r	   getzQueryMapping.get   r   r   )N)r   r   r   r   r   r   r   r	   r   r      s    Fr   r   c                       e Zd ZdZd Zy)Sizedzanything supporting __lenc                       y)z+Return the number of items in the containerNr   r   r   r	   __len__zSized.__len__   r   r   N)r   r   r   r   r   r   r   r	   r   r      s
    :r   r   c                       e Zd ZdZd Zd Zy)MutableMappingzHas __setitem__ and __delitem__c                      y)zSet the value for the given keyNr   )r   values     r	   __setitem__zMutableMapping.__setitem__!   r   r   c                      y)zbdelete the value for the given key

        Raise a key error if the key if not in the collection.Nr   r   s    r	   __delitem__zMutableMapping.__delitem__$   r   r   N)r   r   r   r   r    r"   r   r   r	   r   r      s    %.Br   r   c                       e Zd Zd Zy)EnumerableMappingc                       y)zReturn an Sequence containing the keys in the collection

        The type of the IReadSequence is not specified. It could be a
        list or a tuple or some other type.
        Nr   r   r   r	   keyszEnumerableMapping.keys+   r   r   N)r   r   r   r&   r   r   r	   r$   r$   )   s    r   r$   c                       e Zd ZdZd Zd Zy)MinimalDictionaryz-Provide minimal dictionary-like behavior
    c                       y)zReturn a IReadSequence containing the values in the collection

        The type of the IReadSequence is not specified. It could be a
        list or a tuple or some other type.
        Nr   r   r   r	   valueszMinimalDictionary.values7   r   r   c                       y)zReturn a IReadSequence containing the items in the collection

        An item is a key-value tuple.

        The type of the IReadSequence is not specified. It could be a
        list or a tuple or some other type.
        Nr   r   r   r	   itemszMinimalDictionary.items>   r   r   N)r   r   r   r   r*   r,   r   r   r	   r(   r(   2   s    r   r(   c                       e Zd ZdZy)Sequencez2Keys must be integers in a sequence starting at 0.Nr   r   r   r   r   r   r	   r.   r.   H   s    8r   r.   c                       e Zd ZdZy)
SequentialzKeys must be used in orderNr/   r   r   r	   r1   r1   K   s     r   r1   r   )BasicUtilBaser   r   r   Mutabler   r$   r(   r.   r1   assertTypeImplementstypeHashKeyr   r   r	   <module>r9      s    ejj 
7 
:EJJ :	BU]] 	B e^),9w 9! !   $r(Xuemm$D E   $r(Xun$E F   $r(We^$D Er   