def _write_enum(self, specification, attribute, output_directory, package_name):
enum_name = specification.entity_name + attribute.local_name[<NUM_LIT:0>:<NUM_LIT:1>].upper() + attribute.local_name[<NUM_LIT:1>:]<EOL>template_file = "<STR_LIT>"<EOL>destination = "<STR_LIT>" % (output_directory, self.enums_path)<EOL>filename = "<STR_LIT>" % (self._class_prefix, enum_name)<EOL>self.write(destination=destination,<EOL>filename=filename, <EOL>template_name=template_file,<EOL>header=self.header_content,<EOL>specification=specification,<EOL>package_name=package_name,<EOL>enum_name=enum_name,<EOL>attribute=attribute)<EOL>return (filename, specification.entity_name)<EOL>
Write autogenerate specification file