#NEWLINE# def get_type_by_name( self , name ) : #NEWLINE# #INDENT# for data_type in self . data_types : #NEWLINE# #INDENT# if ( data_type . name == name ) : #NEWLINE# #INDENT# return name #NEWLINE# #UNINDENT# #UNINDENT# try : #NEWLINE# #INDENT# data_type = PrimitiveTypeRef ( name ) #NEWLINE# return data_type #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# data_type = ContainerTypeRef ( name ) #NEWLINE# return data_type #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# if ( name == '_API_' ) : #NEWLINE# #INDENT# return NamedTypeDef ( name = '_API_' , fields = [ ] ) #NEWLINE# #UNINDENT# return None