def getUsedTypes(self): types = set() usedTypes = set() constraints = {} for obj in self._id2obj.itervalues(): if type(obj) not in types: types.add(type(obj)) for p in rtti.properties(obj): for t in rtti.usedTypes(p.type): usedTypes.add(t) for t in rtti.usedConstraints(p.type): constraints[t] = set() return usedTypes, constraints
def usedConstraints(self): return rtti.usedConstraints(self.elementType)