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