Exemple #1
0
 def isImplementedByInstancesOf(self, klass):
     """Do instances of the given class implement the interface?
     """
     i = getImplementsOfInstances(klass)
     if i is not None:
         return visitImplements(i, klass, self.isEqualOrExtendedBy,
                                self._getInterface)
     return 0
Exemple #2
0
 def isImplementedByInstancesOf(self, klass):
     """Do instances of the given class implement the interface?
     """
     i = getImplementsOfInstances(klass)
     if i is not None:
         return visitImplements(
             i, klass, self.isEqualOrExtendedBy, self._getInterface)
     return 0
Exemple #3
0
 def isImplementedBy(self, object):
     """Does the given object implement the interface?
     """
     i = getImplements(object)
     if i is not None:
         return visitImplements(i, object, self.isEqualOrExtendedBy,
                                self._getInterface)
     return 0
Exemple #4
0
 def isImplementedBy(self, object):
     """Does the given object implement the interface?
     """
     i = getImplements(object)
     if i is not None:
         return visitImplements(
             i, object, self.isEqualOrExtendedBy, self._getInterface)
     return 0