There are no attributes in this class.
implementedBy(...)
Test whether the specification is implemented by a class or factory. Raise TypeError if argument is neither a class nor a callable.
isOrExtends(...)
Test whether a specification is or extends another
providedBy(...)
Test whether an interface is implemented by the specification
changed(originally_changed)
We, or something we depend on, have changed
deferred()
Return a defered class corresponding to the interface.
direct(name)
extends(interface, strict=True)
Does the specification extend the given interface?
Test whether an interface in the specification extends the given interface
Examples:
>>> from zope.interface import Interface >>> from zope.interface.declarations import Declaration >>> class I1(Interface): pass ... >>> class I2(I1): pass ... >>> class I3(Interface): pass ... >>> class I4(I3): pass ... >>> spec = Declaration() >>> int(spec.extends(Interface)) 1 >>> spec = Declaration(I2) >>> int(spec.extends(Interface)) 1 >>> int(spec.extends(I1)) 1 >>> int(spec.extends(I2)) 1 >>> int(spec.extends(I3)) 0 >>> int(spec.extends(I4)) 0 >>> I2.extends(I2) 0 >>> I2.extends(I2, False) 1 >>> I2.extends(I2, strict=False) 1
get(name, default=None)
Query for an attribute description
getBases()
getDescriptionFor(name)
Return the attribute description for the given name.
getDoc()
Returns the documentation for the object.
getName()
Returns the name of the object.
getTaggedValue(tag)
Returns the value associated with tag
.
getTaggedValueTags()
Returns a list of all tags.
interfaces()
Return an iterator for the interfaces in the specification
for example:
>>> from zope.interface import Interface >>> class I1(Interface): pass ... >>> >>> i = I1.interfaces() >>> i.next().getName() 'I1' >>> list(i) []
isEqualOrExtendedBy(other)
Same interface or extends?
names(all=False)
Return the attribute names defined by the interface.
namesAndDescriptions(all=False)
Return attribute names and descriptions defined by interface.
queryDescriptionFor(name, default=None)
queryTaggedValue(tag, default=None)
Returns the value associated with tag
.
setTaggedValue(tag, value)
Associates value
with key
.
subscribe(dependent)
unsubscribe(dependent)
validateInvariants(obj, errors=None)
validate object to defined invariants.
weakref(callback=None)
There are no known subclasses.