#NEWLINE# @ classmethod #NEWLINE# def validate_resource_type( cls , resource_type ) : #NEWLINE# #INDENT# if ( not resource_type ) : #NEWLINE# #INDENT# raise ValueError ( 'Resource type should not be empty.' ) #NEWLINE# #UNINDENT# if ( cls . separator in resource_type ) : #NEWLINE# #INDENT# raise ValueError ( ( 'Resource type should not contain "%s".' % cls . separator ) ) #NEWLINE# #UNINDENT# return resource_type