Inherits from
- MetaHasTraits: enthought.traits.has_traits.MetaHasTraits
- InterfaceClass: enthought.traits.protocols.interfaces.InterfaceClass
Method summary
Inherited from base classes
- __adapt__(self, obj)
- __setattr__(self, attr, val)
- addImplicationListener(self, listener)
- addImpliedProtocol(self, proto, adapter = NO_ADAPTER_NEEDED, depth = 1)
- getImpliedProtocols(self)
- registerImplementation(self, klass, adapter = NO_ADAPTER_NEEDED, depth = 1)
- registerObject(self, ob, adapter = NO_ADAPTER_NEEDED, depth = 1)
Methods
- __call__(self, *args, **kw)
This method is copied over from the PyProtocols 'InterfaceClass' (and cleaned up a little). It is needed here because:
- the 'InterfaceClass' is no longer the first class in the hierarchy.
- the reference to 'Interface' now needs to reference our Interface.
- __init__(self, __name__, __bases__, __dict__)
This method is copied over from PyProtocols 'AbstractBaseMets'.
It is needed here to make sure that we don't add any implied protocols for our 'Interface' class (since PyProtocols doesn't know about it.
- getBases(self)
Overridden to make sure we don't return our 'Interface' class.