Package zope :: Package interface :: Module interfaces :: Class IDeclaration
[show private | hide private]
[frames | no frames]

Type IDeclaration

 Interface --+    
             |    
ISpecification --+
                 |
                IDeclaration


Interface declaration

Declarations are used to express the interfaces implemented by classes or provided by objects.


Method Summary
    Inherited from InterfaceClass
  __contains__(self, name)
  __iter__(self)
  extends(self, interface, strict)
Does the specification extend the given interface?
  get(self, name, default)
Query for an attribute description
  isOrExtends(self, interface)
Is the interface the same as or extend the given interface
  weakref(self, callback)

Class Variable Summary
str __add__ = 'Create an interface specification with some i...
tuple __bases__ = (<InterfaceClass zope.interface.interfaces.I...
str __nonzero__ = 'Return a true value of the interface spec...
tuple __sro__ = (<InterfaceClass zope.interface.interfaces.IDe...
str __sub__ = 'Create an interface specification with some i...
str flattened = 'Return an iterator of all included and exte...

Class Variable Details

__add__

Type:
str
Value:
'''Create an interface specification with some interfaces added

        The argument can be an interface or an interface
        specifications.  The interface or interfaces given in a
        specification are added to the interface specification.

        Adding an interface that is already in the specification does
        not raise an error. Doing so has no effect.
...                                                                    

__bases__

Type:
tuple
Value:
(<InterfaceClass zope.interface.interfaces.ISpecification>,)           

__nonzero__

Type:
str
Value:
'''Return a true value of the interface specification is non-empty
        '''                                                            

__sro__

Type:
tuple
Value:
(<InterfaceClass zope.interface.interfaces.IDeclaration>,
 <InterfaceClass zope.interface.interfaces.ISpecification>,
 <InterfaceClass zope.interface.Interface>)                            

__sub__

Type:
str
Value:
'''Create an interface specification with some interfaces excluded

        The argument can be an interface or an interface
        specifications.  The interface or interfaces given in a
        specification are subtracted from the interface specification.

        Removing an interface that is not in the specification does
        not raise an error. Doing so has no effect.
...                                                                    

flattened

Type:
str
Value:
'''Return an iterator of all included and extended interfaces

        An iterator is returned for all interfaces either included in
        or extended by interfaces included in the specifications
        without duplicates. The interfaces are in "interface
        resolution order". The interface resolution order is such that
        base interfaces are listed after interfaces that extend them
        and, otherwise, interfaces are included in the order that they
...                                                                    

Generated by Epydoc 2.1 on Fri Jun 24 12:01:26 2005 http://epydoc.sf.net