parameters: (self, interface)
docstring: Generate all interfaces required by an API version or extension.
  
          - interface - Element for `<version>` or `<extension>`
docstring_summary: Generate all interfaces required by an API version or extension.
docstring_tokens: Generate all interfaces required by an API version or extension .
function: def generateRequiredInterface(self, interface):
          """Generate all interfaces required by an API version or extension.
  
          - interface - Element for `<version>` or `<extension>`"""
  
          # Loop over all features inside all <require> tags.
          for features in interface.findall('require'):
              for t in features.findall('type'):
                  self.generateFeature(t.get('name'), 'type', self.typedict)
              for e in features.findall('enum'):
                  # If this is an enum extending an enumerated type, don't
                  # generate it - this has already been done in reg.parseTree,
                  # by copying this element into the enumerated type.
                  enumextends = e.get('extends')
                  if not enumextends:
                      self.generateFeature(e.get('name'), 'enum', self.enumdict)
              for c in features.findall('command'):
                  self.generateFeature(c.get('name'), 'command', self.cmddict)
function_tokens: def generateRequiredInterface ( self , interface ) : # Loop over all features inside all <require> tags. for features in interface . findall ( 'require' ) : for t in features . findall ( 'type' ) : self . generateFeature ( t . get ( 'name' ) , 'type' , self . typedict ) for e in features . findall ( 'enum' ) : # If this is an enum extending an enumerated type, don't # generate it - this has already been done in reg.parseTree, # by copying this element into the enumerated type. enumextends = e . get ( 'extends' ) if not enumextends : self . generateFeature ( e . get ( 'name' ) , 'enum' , self . enumdict ) for c in features . findall ( 'command' ) : self . generateFeature ( c . get ( 'name' ) , 'command' , self . cmddict )