code: def _write_enum(self, specification, attribute, output_directory, package_name):
          
          enum_name = specification.entity_name + attribute.local_name[0:1].upper() + attribute.local_name[1:]
          template_file = "o11nplugin-core/enum.java.tpl"
          destination = "%s%s" % (output_directory, self.enums_path)
          filename = "%s%s.java" % (self._class_prefix, enum_name)
  
          self.write(destination=destination,
                     filename=filename, 
                     template_name=template_file,
                     header=self.header_content,
                     specification=specification,
                     package_name=package_name,
                     enum_name=enum_name,
                     attribute=attribute)
  
          return (filename, specification.entity_name)
docs: Write autogenerate specification file