Example #1
0
 def Resolve(self, xsdTypeDict, cTypeDict):
     if self._xelement.isComplex():
         self._complexType = ComplexTypeLocate(xsdTypeDict, cTypeDict,
                                               self.getXsdType())
         if not self._complexType:
             logger = logging.getLogger('ifmap_model')
             logger.warning('%s: type \'%s\' not found in xml schema',
                            self.getName(), xtypename)
Example #2
0
 def Resolve(self, xsdTypeDict, cTypeDict):
     xtypename = self.getXsdType()
     self._complexType = ComplexTypeLocate(xsdTypeDict, cTypeDict, xtypename)
     # Ensure a prop-list using wrapper for list
     # has only one element in wrapper
     if (self.isListUsingWrapper() and
         (len(xsdTypeDict[xtypename].children) != 1)):
         err_msg = 'ListProperty %s using incorrect wrapper-type %s' %(
             self._name, xtypename)
         raise Exception(err_msg)
Example #3
0
 def Resolve(self, xsdTypeDict, cTypeDict):
     xtypename = self.getXsdType()
     self._complexType = ComplexTypeLocate(xsdTypeDict, cTypeDict,
                                           xtypename)
Example #4
0
 def _BuildDataModel(self, children):
     for child in children:
         xtypename = child.getType()
         self._complexType = ComplexTypeLocate(self._Parser.ElementDict,
                                               self._cTypesDict, xtypename)