parameters: (self, outfile, module_name, is_key=False, indent='')
docstring: Writes common info about this flag, in XML format.
  
      This is information that is relevant to all flags (e.g., name,
      meaning, etc.).  If you defined a flag that has some other pieces of
      info, then please override _WriteCustomInfoInXMLFormat.
  
      Please do NOT override this method.
  
      Args:
        outfile: File object we write to.
        module_name: A string, the name of the module that defines this flag.
        is_key: A boolean, True iff this flag is key for main module.
        indent: A string that is prepended to each generated line.
docstring_summary: Writes common info about this flag, in XML format.
docstring_tokens: Writes common info about this flag in XML format .
function: def WriteInfoInXMLFormat(self, outfile, module_name, is_key=False, indent=''):
      """Writes common info about this flag, in XML format.
  
      This is information that is relevant to all flags (e.g., name,
      meaning, etc.).  If you defined a flag that has some other pieces of
      info, then please override _WriteCustomInfoInXMLFormat.
  
      Please do NOT override this method.
  
      Args:
        outfile: File object we write to.
        module_name: A string, the name of the module that defines this flag.
        is_key: A boolean, True iff this flag is key for main module.
        indent: A string that is prepended to each generated line.
      """
      outfile.write(indent + '<flag>\n')
      inner_indent = indent + '  '
      if is_key:
        _WriteSimpleXMLElement(outfile, 'key', 'yes', inner_indent)
      _WriteSimpleXMLElement(outfile, 'file', module_name, inner_indent)
      # Print flag features that are relevant for all flags.
      _WriteSimpleXMLElement(outfile, 'name', self.name, inner_indent)
      if self.short_name:
        _WriteSimpleXMLElement(outfile, 'short_name', self.short_name,
                               inner_indent)
      if self.help:
        _WriteSimpleXMLElement(outfile, 'meaning', self.help, inner_indent)
      # The default flag value can either be represented as a string like on the
      # command line, or as a Python object.  We serialize this value in the
      # latter case in order to remain consistent.
      if self.serializer and not isinstance(self.default, str):
        default_serialized = self.serializer.Serialize(self.default)
      else:
        default_serialized = self.default
      _WriteSimpleXMLElement(outfile, 'default', default_serialized, inner_indent)
      _WriteSimpleXMLElement(outfile, 'current', self.value, inner_indent)
      _WriteSimpleXMLElement(outfile, 'type', self.Type(), inner_indent)
      # Print extra flag features this flag may have.
      self._WriteCustomInfoInXMLFormat(outfile, inner_indent)
      outfile.write(indent + '</flag>\n')
function_tokens: def WriteInfoInXMLFormat ( self , outfile , module_name , is_key = False , indent = '' ) : outfile . write ( indent + '<flag>\n' ) inner_indent = indent + '  ' if is_key : _WriteSimpleXMLElement ( outfile , 'key' , 'yes' , inner_indent ) _WriteSimpleXMLElement ( outfile , 'file' , module_name , inner_indent ) # Print flag features that are relevant for all flags. _WriteSimpleXMLElement ( outfile , 'name' , self . name , inner_indent ) if self . short_name : _WriteSimpleXMLElement ( outfile , 'short_name' , self . short_name , inner_indent ) if self . help : _WriteSimpleXMLElement ( outfile , 'meaning' , self . help , inner_indent ) # The default flag value can either be represented as a string like on the # command line, or as a Python object.  We serialize this value in the # latter case in order to remain consistent. if self . serializer and not isinstance ( self . default , str ) : default_serialized = self . serializer . Serialize ( self . default ) else : default_serialized = self . default _WriteSimpleXMLElement ( outfile , 'default' , default_serialized , inner_indent ) _WriteSimpleXMLElement ( outfile , 'current' , self . value , inner_indent ) _WriteSimpleXMLElement ( outfile , 'type' , self . Type ( ) , inner_indent ) # Print extra flag features this flag may have. self . _WriteCustomInfoInXMLFormat ( outfile , inner_indent ) outfile . write ( indent + '</flag>\n' )