Trees | Index | Help |
|
---|
Package zope :: Package interface :: Module declarations :: Class Declaration |
|
object
--+ |SpecificationBasePy
--+ |Specification
--+ | Declaration
ClassProvides
,
Implements
Interface declarations
Method Summary | |
---|---|
__init__(self,
*interfaces)
| |
Add two specifications or a specification and an interface | |
Test whether an interface is in the specification | |
Return an iterator for the interfaces in the specification | |
Test whether there are any interfaces in a specification. | |
Add two specifications or a specification and an interface | |
Remove interfaces from a specification | |
We, or something we depend on, have changed | |
Return an iterator of all included and extended interfaces | |
Inherited from Specification | |
Does the specification extend the given interface? | |
Query for an attribute description | |
Return an iterator for the interfaces in the specification | |
| |
| |
Is the interface the same as or extend the given interface | |
Is the interface implemented by an object | |
| |
| |
| |
Inherited from SpecificationBasePy | |
Do instances of the given class implement the interface? | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Property Summary | |
---|---|
Inherited from Specification | |
__bases__ |
Class Variable Summary | |
---|---|
Inherited from Specification | |
Implements |
__implemented__ = <implementedBy zope.interface.interfac...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
Inherited from SpecificationBasePy | |
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
Method Details |
---|
__add__(self,
other)
|
__contains__(self,
interface)
|
__iter__(self)Return an iterator for the interfaces in the specification for example: >>> from zope.interface import Interface >>> class I1(Interface): pass ... >>> class I2(I1): pass ... >>> class I3(Interface): pass ... >>> class I4(I3): pass ... >>> spec = Declaration(I2, I3) >>> spec = Declaration(I4, spec) >>> i = iter(spec) >>> i.next().getName() 'I4' >>> i.next().getName() 'I2' >>> i.next().getName() 'I3' >>> list(i) [] |
__nonzero__(self)
|
__radd__(self,
other)
|
__sub__(self,
other)
|
changed(self)We, or something we depend on, have changed
|
flattened(self)Return an iterator of all included and extended interfaces for example: >>> from zope.interface import Interface >>> class I1(Interface): pass ... >>> class I2(I1): pass ... >>> class I3(Interface): pass ... >>> class I4(I3): pass ... >>> spec = Declaration(I2, I3) >>> spec = Declaration(I4, spec) >>> i = spec.flattened() >>> i.next().getName() 'I4' >>> i.next().getName() 'I2' >>> i.next().getName() 'I1' >>> i.next().getName() 'I3' >>> i.next().getName() 'Interface' >>> list(i) [] |
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Jun 24 12:01:21 2005 | http://epydoc.sf.net |