Class: TaxonNameClassification::Iczn::Available::Invalid::SuppressionOfTypeGenus

Inherits:
TaxonNameClassification::Iczn::Available::Invalid show all
Defined in:
app/models/taxon_name_classification/iczn/available/invalid/suppression_of_type_genus.rb

Constant Summary collapse

NOMEN_URI =
'http://purl.obolibrary.org/obo/NOMEN_0000120'.freeze

Constants included from SoftValidation

SoftValidation::ANCESTORS_WITH_SOFT_VALIDATIONS

Instance Attribute Summary

Attributes inherited from TaxonNameClassification

#project_id, #taxon_name_id, #type

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from TaxonNameClassification::Iczn::Available::Invalid

gbif_status, #label

Methods inherited from TaxonNameClassification::Iczn::Available

assignable, gbif_status

Methods inherited from TaxonNameClassification::Iczn

code_applicability_start_year

Methods inherited from TaxonNameClassification

#annotated_object, annotates?, assignable, code_applicability_end_year, code_applicability_start_year, collect_descendants_and_itself_to_s, collect_descendants_to_s, collect_to_s, gbif_status, label, #nomen_id, nomen_uri, #nomenclature_code, #nomenclature_code_matches, parent, possible_genus_endings, possible_species_endings, questionable_species_endings, #set_cached, #set_cached_names_for_taxon_names, #sv_proper_classification, #sv_proper_year, #sv_validate_disjoint_classes, #type_class, #type_class=, #type_name, #validate_taxon_name_classification, #validate_uniqueness_of_latinized

Methods included from SoftValidation

#clear_soft_validations, #fix_soft_validations, #soft_fixed?, #soft_valid?, #soft_validate, #soft_validated?, #soft_validations

Methods included from Shared::IsData

#errors_excepting, #full_error_messages_excepting, #identical, #is_community?, #is_destroyable?, #is_editable?, #is_in_use?, #is_in_users_projects?, #metamorphosize, #similar

Methods included from Shared::Notes

#concatenated_notes_string, #reject_notes

Methods included from Shared::Citations

#cited?, #mark_citations_for_destruction, #nomenclature_date, #origin_citation_source_id, #reject_citations, #requires_citation?, #sources_by_topic_id

Methods included from Housekeeping

#has_polymorphic_relationship?

Methods inherited from ApplicationRecord

transaction_with_retry

Class Method Details

.applicable_ranksObject



9
10
11
# File 'app/models/taxon_name_classification/iczn/available/invalid/suppression_of_type_genus.rb', line 9

def self.applicable_ranks
  FAMILY_RANK_NAMES_ICZN
end

.disjoint_taxon_name_classesObject



13
14
15
16
17
18
# File 'app/models/taxon_name_classification/iczn/available/invalid/suppression_of_type_genus.rb', line 13

def self.disjoint_taxon_name_classes
  self.parent.disjoint_taxon_name_classes +
      self.collect_to_s(TaxonNameClassification::Iczn::Available::Invalid,
                        TaxonNameClassification::Iczn::Available::Invalid::Homonym,
                        TaxonNameClassification::Iczn::Available::Invalid::HomonymyOfTypeGenus)
end

Instance Method Details

#classification_labelObject



5
6
7
# File 'app/models/taxon_name_classification/iczn/available/invalid/suppression_of_type_genus.rb', line 5

def classification_label
  'invalid due to suppression of type genus'
end

#sv_not_specific_classesObject



20
21
22
# File 'app/models/taxon_name_classification/iczn/available/invalid/suppression_of_type_genus.rb', line 20

def sv_not_specific_classes
  true
end