View class for an Interface.
There are no attributes in this class.
getAttributes()
Return a list of attributes in the order they were specified.
getBases()
Get all bases of this class
Example:
>>> from tests import getInterfaceDetails >>> details = getInterfaceDetails() >>> details.getBases() ['zope.interface.Interface']
getClasses()
Get the classes that implement this interface.
Example:
>>> from zope.app.apidoc.tests import pprint >>> from tests import getInterfaceDetails >>> details = getInterfaceDetails() >>> classes = details.getClasses() >>> pprint(classes) [[('path', 'zope.app.apidoc.ifacemodule.tests.Foo'), ('url', 'zope/app/apidoc/ifacemodule/tests/Foo')]]
getDoc()
Return the main documentation string of the interface.
Example:
>>> from tests import getInterfaceDetails >>> details = getInterfaceDetails() >>> details.getDoc()[:55] u'<div class="document">\n<p>This is the Foo interface</p>'
getExtendedRequiredAdapters()
Get adapters where this interface is required.
getFactories()
Return the factories, who will provide objects implementing this interface.
getFields()
Return a list of fields in required + alphabetical order.
The required attributes are listed first, then the optional attributes.
getGenericRequiredAdapters()
Get adapters where this interface is required.
getId()
Return the id of the field as it is defined for the interface utility.
Example:
>>> from tests import getInterfaceDetails >>> details = getInterfaceDetails() >>> details.getId() 'IFoo'
getMethods()
Return a list of methods in the order they were specified.
getProvidedAdapters()
Get adapters where this interface is provided.
getSpecificRequiredAdapters()
Get adapters where this interface is required.
getTypes()
Return a list of interface types that are specified for this interface.
getUtilities()
Return all utilities that provide this interface.
getViewClassTitles()
getViewTypeTitles()
There are no known subclasses.