#NEWLINE# def to_obj( self , return_obj = None , ns_info = None ) : #NEWLINE# #INDENT# self . _collect_ns_info ( ns_info ) #NEWLINE# attr_obj = self . _binding_class ( ) #NEWLINE# attr_obj . set_valueOf_ ( normalize_to_xml ( self . serialized_value , self . delimiter ) ) #NEWLINE# if ( self . id_ is not None ) : #NEWLINE# #INDENT# attr_obj . id = self . id_ #NEWLINE# #UNINDENT# if ( self . idref is not None ) : #NEWLINE# #INDENT# attr_obj . idref = self . idref #NEWLINE# #UNINDENT# if ( self . appears_random is not None ) : #NEWLINE# #INDENT# attr_obj . appears_random = self . appears_random #NEWLINE# #UNINDENT# if ( self . is_obfuscated is not None ) : #NEWLINE# #INDENT# attr_obj . is_obfuscated = self . is_obfuscated #NEWLINE# #UNINDENT# if ( self . obfuscation_algorithm_ref is not None ) : #NEWLINE# #INDENT# attr_obj . obfuscation_algorithm_ref = self . obfuscation_algorithm_ref #NEWLINE# #UNINDENT# if ( self . is_defanged is not None ) : #NEWLINE# #INDENT# attr_obj . is_defanged = self . is_defanged #NEWLINE# #UNINDENT# if ( self . defanging_algorithm_ref is not None ) : #NEWLINE# #INDENT# attr_obj . defanging_algorithm_ref = self . defanging_algorithm_ref #NEWLINE# #UNINDENT# if ( self . refanging_transform_type is not None ) : #NEWLINE# #INDENT# attr_obj . refanging_transform_type = self . refanging_transform_type #NEWLINE# #UNINDENT# if ( self . refanging_transform is not None ) : #NEWLINE# #INDENT# attr_obj . refanging_transform = self . refanging_transform #NEWLINE# #UNINDENT# if ( self . observed_encoding is not None ) : #NEWLINE# #INDENT# attr_obj . observed_encoding = self . observed_encoding #NEWLINE# #UNINDENT# if ( self . _force_datatype or ( self . datatype != self . default_datatype ) ) : #NEWLINE# #INDENT# attr_obj . datatype = self . datatype #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# attr_obj . datatype = None #NEWLINE# #UNINDENT# PatternFieldGroup . to_obj ( self , return_obj = attr_obj , ns_info = ns_info ) #NEWLINE# return attr_obj