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
Example #2
0
    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
Example #3
0
 def usedConstraints(self):
     return rtti.usedConstraints(self.elementType)
Example #4
0
 def usedConstraints(self):
     return rtti.usedConstraints(self.elementType)