#NEWLINE# def GetCodeTypeFromDictionary( self , json_schema ) : #NEWLINE# #INDENT# "Convert a json schema primitive type into the most suitable class name.\n\n    Subclasses should override as appropriate.\n\n    Args:\n      json_schema: (dict) The defintion dictionary for this type\n    Returns:\n      A name suitable for use as a class in the generator's target language.\n    " #NEWLINE# json_type = json_schema . get ( 'type' , 'UNKNOWN' ) #NEWLINE# json_format = json_schema . get ( 'format' ) #NEWLINE# if json_format : #NEWLINE# #INDENT# json_type = ( '%s (%s)' % ( json_type , json_format ) ) #NEWLINE# #UNINDENT# return json_type