Class: TaxonNameRelationship::Iczn::Invalidating::Synonym

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

Direct Known Subclasses

ForgottenName, Objective, Subjective, Suppression

Defined Under Namespace

Classes: ForgottenName, Objective, Subjective, Suppression

Class Method Summary collapse

Methods inherited from TaxonNameRelationship::Iczn::Invalidating

assignable, disjoint_subject_classes, nomenclatural_priority

Methods inherited from TaxonNameRelationship::Iczn

disjoint_subject_classes, valid_object_ranks, valid_subject_ranks

Methods inherited from TaxonNameRelationship

#aliases, assignable, disjoint_subject_classes, #is_combination?, nomenclatural_priority, #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

.assignment_methodObject



23
24
25
26
# File 'app/models/taxon_name_relationship/iczn/invalidating/synonym.rb', line 23

def self.assignment_method
  # bus.set_as_iczn_synonym_of(aus)
  :iczn_set_as_synonym_of
end

.disjoint_object_classesObject



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

def self.disjoint_object_classes
  self.parent.disjoint_object_classes +
      self.collect_descendants_and_itself_to_s(TaxonNameClassification::Iczn::Available::Invalid)
end

.disjoint_taxon_name_relationshipsObject



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

def self.disjoint_taxon_name_relationships
  self.parent.disjoint_taxon_name_relationships +
      self.collect_descendants_to_s(TaxonNameRelationship::Iczn::Invalidating::Usage) +
          [TaxonNameRelationship::Iczn::Invalidating.to_s]
end

.inverse_assignment_methodObject

as.



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

def self.inverse_assignment_method
  # aus.iczn_synonym = bus
  :iczn_synonym
end

.object_relationship_nameObject



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

def self.object_relationship_name
  'synonym'
end

.subject_relationship_nameObject



14
15
16
# File 'app/models/taxon_name_relationship/iczn/invalidating/synonym.rb', line 14

def self.subject_relationship_name
  'senior synonym'
end