Class: TaxonNameRelationship::Iczn::Invalidating::Usage::IncorrectOriginalSpelling

Inherits:
TaxonNameRelationship::Iczn::Invalidating::Usage show all
Defined in:
app/models/taxon_name_relationship/iczn/invalidating/usage/incorrect_original_spelling.rb

Class Method Summary collapse

Methods inherited from TaxonNameRelationship::Iczn::Invalidating

disjoint_subject_classes

Methods inherited from TaxonNameRelationship::Iczn

disjoint_object_classes, disjoint_subject_classes, valid_object_ranks, valid_subject_ranks

Methods inherited from TaxonNameRelationship

#aliases, disjoint_object_classes, disjoint_subject_classes, #is_combination?, #object_properties, required_taxon_name_relationships, #subject_properties, #type_class, #type_class=, #type_name, valid_object_ranks, valid_subject_ranks

Methods included from SoftValidation

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

Methods included from Housekeeping

#has_polymorphic_relationship?

Class Method Details

.assignableObject



33
34
35
# File 'app/models/taxon_name_relationship/iczn/invalidating/usage/incorrect_original_spelling.rb', line 33

def self.assignable
  true
end

.assignment_methodObject



18
19
20
21
# File 'app/models/taxon_name_relationship/iczn/invalidating/usage/incorrect_original_spelling.rb', line 18

def self.assignment_method
  # bus.set_as_misspelling_of(aus)
  :iczn_set_as_incorrect_original_spelling_of
end

.disjoint_taxon_name_relationshipsObject



3
4
5
6
7
# File 'app/models/taxon_name_relationship/iczn/invalidating/usage/incorrect_original_spelling.rb', line 3

def self.disjoint_taxon_name_relationships
  self.parent.disjoint_taxon_name_relationships +
      self.collect_descendants_to_s(TaxonNameRelationship::Iczn::Invalidating::Usage::Misapplication,
                                    TaxonNameRelationship::Iczn::Invalidating::Usage::Misspelling)
end

.inverse_assignment_methodObject

as.



24
25
26
27
# File 'app/models/taxon_name_relationship/iczn/invalidating/usage/incorrect_original_spelling.rb', line 24

def self.inverse_assignment_method
  # aus.misspelling = bus
  :iczn_incorrect_original_spelling
end

.nomenclatural_priorityObject



29
30
31
# File 'app/models/taxon_name_relationship/iczn/invalidating/usage/incorrect_original_spelling.rb', line 29

def self.nomenclatural_priority
  nil
end

.object_relationship_nameObject



13
14
15
# File 'app/models/taxon_name_relationship/iczn/invalidating/usage/incorrect_original_spelling.rb', line 13

def self.object_relationship_name
  'incorrect original spelling'
end

.subject_relationship_nameObject



9
10
11
# File 'app/models/taxon_name_relationship/iczn/invalidating/usage/incorrect_original_spelling.rb', line 9

def self.subject_relationship_name
  'justified emendation'
end