#NEWLINE# @ classmethod #NEWLINE# def from_obj( cls , obj , return_obj = None ) : #NEWLINE# #INDENT# if ( not obj ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if ( not return_obj ) : #NEWLINE# #INDENT# return_obj = cls ( ) #NEWLINE# #UNINDENT# super ( GenericTestMechanism , cls ) . from_obj ( obj , return_obj ) #NEWLINE# return_obj . reference_location = obj . reference_location #NEWLINE# return_obj . descriptions = StructuredTextList . from_obj ( obj . Description ) #NEWLINE# return_obj . type_ = VocabString . from_obj ( obj . Type ) #NEWLINE# return_obj . specification = EncodedCDATA . from_obj ( obj . Specification ) #NEWLINE# return return_obj