Class: TaxonNameRelationship::Icn::Unaccepting::Usage::Misapplication

Inherits:
TaxonNameRelationship::Icn::Unaccepting::Usage show all
Defined in:
app/models/taxon_name_relationship/icn/unaccepting/usage/misapplication.rb

Class Method Summary collapse

Methods inherited from TaxonNameRelationship::Icn::Unaccepting

assignable, nomenclatural_priority

Methods inherited from TaxonNameRelationship::Icn

disjoint_object_classes, valid_object_ranks, valid_subject_ranks

Methods inherited from TaxonNameRelationship

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



24
25
26
27
# File 'app/models/taxon_name_relationship/icn/unaccepting/usage/misapplication.rb', line 24

def self.assignment_method
  # bus.set_as_icn_misapplication_of(aus)
  :icn_set_as_misapplication_of
end

.disjoint_subject_classesObject



9
10
11
12
13
14
# File 'app/models/taxon_name_relationship/icn/unaccepting/usage/misapplication.rb', line 9

def self.disjoint_subject_classes
  self.parent.disjoint_subject_classes +
      self.collect_to_s(TaxonNameClassification::Icn::NotEffectivelyPublished) +
      self.collect_descendants_and_itself_to_s(TaxonNameClassification::Icn::EffectivelyPublished::InvalidlyPublished,
          TaxonNameClassification::Icn::EffectivelyPublished::ValidlyPublished::Illegitimate)
end

.disjoint_taxon_name_relationshipsObject



3
4
5
6
7
# File 'app/models/taxon_name_relationship/icn/unaccepting/usage/misapplication.rb', line 3

def self.disjoint_taxon_name_relationships
  self.parent.disjoint_taxon_name_relationships +
      self.collect_to_s(TaxonNameRelationship::Icn::Unaccepting::Usage::Basionym,
          TaxonNameRelationship::Icn::Unaccepting::Usage::Misspelling)
end

.inverse_assignment_methodObject



29
30
31
32
# File 'app/models/taxon_name_relationship/icn/unaccepting/usage/misapplication.rb', line 29

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

.object_relationship_nameObject



20
21
22
# File 'app/models/taxon_name_relationship/icn/unaccepting/usage/misapplication.rb', line 20

def self.object_relationship_name
  'misapplication'
end

.subject_relationship_nameObject



16
17
18
# File 'app/models/taxon_name_relationship/icn/unaccepting/usage/misapplication.rb', line 16

def self.subject_relationship_name
  'correct application'
end