def _write_enums(self, entity_name, attributes):
self.enum_attrs_for_locale[entity_name] = attributes;<EOL>for attribute in attributes:<EOL><INDENT>enum_name = "<STR_LIT>" % (entity_name, attribute.name[<NUM_LIT:0>].upper() + attribute.name[<NUM_LIT:1>:])<EOL>self.enum_list.append(enum_name)<EOL>filename = "<STR_LIT>" % (self._class_prefix, enum_name)<EOL>self.write(destination = self.enum_directory,<EOL>filename=filename,<EOL>template_name="<STR_LIT>",<EOL>class_prefix = self._class_prefix,<EOL>enum_name = enum_name,<EOL>allowed_choices = set(attribute.allowed_choices))<EOL><DEDENT>
This method writes the ouput for a particular specification.