(self, s, element, element_type=None)
return s
Convert a discovery name to a suitable ObjC class name.

    Overrides the default.

    Args:
      s: (str) A rosy name of data element.
      element: (object) The object we need a class name for.
      element_type: (str) The kind of element to name.
    Returns:
      A name suitable for use as a class in the generator's target language.
Convert a discovery name to a suitable ObjC class name.
Convert a discovery name to a suitable ObjC class name .
def ToClassName(self, s, element, element_type=None):
    """Convert a discovery name to a suitable ObjC class name.

    Overrides the default.

    Args:
      s: (str) A rosy name of data element.
      element: (object) The object we need a class name for.
      element_type: (str) The kind of element to name.
    Returns:
      A name suitable for use as a class in the generator's target language.
    """
    if ((s.lower() in ObjCLanguageModel.RESERVED_CLASS_NAMES)
        or isinstance(element, api.Schema)):
      # Prepend the service name
      name = self.values['canonicalName']
      s = '%s%s' % (
          utilities.CamelCase(name).replace(' ', ''),
          utilities.CamelCase(s))
    else:
      s = utilities.CamelCase(s).replace(' ', '')
    if not s.startswith('GTL'):
      return 'GTL' + s
    return s
def ToClassName ( self , s , element , element_type = None ) : if ( ( s . lower ( ) in ObjCLanguageModel . RESERVED_CLASS_NAMES ) or isinstance ( element , api . Schema ) ) : # Prepend the service name name = self . values [ 'canonicalName' ] s = '%s%s' % ( utilities . CamelCase ( name ) . replace ( ' ' , '' ) , utilities . CamelCase ( s ) ) else : s = utilities . CamelCase ( s ) . replace ( ' ' , '' ) if not s . startswith ( 'GTL' ) : return 'GTL' + s return s