#NEWLINE# def validate( self , types ) : #NEWLINE# #INDENT# if ( ( self . name == '_API_' ) or ( self . name == '_NONE_' ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# for type in types : #NEWLINE# #INDENT# if ( type == self . name ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# #UNINDENT# raise APIDescriptionException ( ( 'Reference to unknown data type: ' + self . name ) )