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

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

Defined Under Namespace

Classes: SynonymicHomonym, UnjustifiedEmendation, UnnecessaryReplacementName

Class Method Summary collapse

Methods inherited from TaxonNameRelationship::Iczn::Invalidating::Synonym

disjoint_object_classes

Methods inherited from TaxonNameRelationship::Iczn::Invalidating

assignable, disjoint_subject_classes, nomenclatural_priority

Methods inherited from TaxonNameRelationship::Iczn

disjoint_object_classes, disjoint_subject_classes, valid_object_ranks, valid_subject_ranks

Methods inherited from TaxonNameRelationship

#aliases, assignable, disjoint_object_classes, 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



20
21
22
23
# File 'app/models/taxon_name_relationship/iczn/invalidating/synonym/objective.rb', line 20

def self.assignment_method
  # bus.set_as_iczn_objective_synonym_of(aus)
  :iczn_set_as_objective_synonym_of
end

.disjoint_taxon_name_relationshipsObject



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

def self.disjoint_taxon_name_relationships
  self.parent.disjoint_taxon_name_relationships +
      self.collect_descendants_and_itself_to_s(TaxonNameRelationship::Iczn::Invalidating::Synonym::Suppression) +
      self.collect_to_s(TaxonNameRelationship::Iczn::Invalidating::Synonym,
          TaxonNameRelationship::Iczn::Invalidating::Synonym::Subjective,
          TaxonNameRelationship::Iczn::Invalidating::Synonym::ForgottenName)
end

.inverse_assignment_methodObject

as.



26
27
28
29
# File 'app/models/taxon_name_relationship/iczn/invalidating/synonym/objective.rb', line 26

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

.object_relationship_nameObject



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

def self.object_relationship_name
  'objective synonym'
end

.subject_relationship_nameObject



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

def self.subject_relationship_name
  'objective senior synonym'
end