Class: TaxonNameRelationship::Iczn::Validating::ConservedWork

Inherits:
TaxonNameRelationship::Iczn::Validating show all
Defined in:
app/models/taxon_name_relationship/iczn/validating/conserved_work.rb

Class Method Summary collapse

Methods inherited from TaxonNameRelationship::Iczn

valid_object_ranks, valid_subject_ranks

Methods inherited from TaxonNameRelationship

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



19
20
21
# File 'app/models/taxon_name_relationship/iczn/validating/conserved_work.rb', line 19

def self.assignable
  true
end

.assignment_methodObject

as.



36
37
38
39
# File 'app/models/taxon_name_relationship/iczn/validating/conserved_work.rb', line 36

def self.assignment_method
  # bus.set_as_conserved_name_of(aus)
  :iczn_set_as_conserved_work_of
end

.disjoint_object_classesObject



14
15
16
17
# File 'app/models/taxon_name_relationship/iczn/validating/conserved_work.rb', line 14

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

.disjoint_subject_classesObject



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

def self.disjoint_subject_classes
  self.parent.disjoint_subject_classes + self.collect_to_s(
      TaxonNameClassification::Iczn::Available::Valid::NomenDubium)
end

.disjoint_taxon_name_relationshipsObject



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

def self.disjoint_taxon_name_relationships
  self.parent.disjoint_taxon_name_relationships +
      self.collect_to_s(TaxonNameRelationship::Iczn::Validating::UncertainPlacement,
          TaxonNameRelationship::Iczn::Validating::ConservedName)
end

.inverse_assignment_methodObject



41
42
43
44
# File 'app/models/taxon_name_relationship/iczn/validating/conserved_work.rb', line 41

def self.inverse_assignment_method
  # aus.iczn_conserved_name = bus
  :iczn_conserved_work
end

.nomenclatural_priorityObject



23
24
25
# File 'app/models/taxon_name_relationship/iczn/validating/conserved_work.rb', line 23

def self.nomenclatural_priority
  :reverse
end

.object_relationship_nameObject



31
32
33
# File 'app/models/taxon_name_relationship/iczn/validating/conserved_work.rb', line 31

def self.object_relationship_name
  'conserved work'
end

.subject_relationship_nameObject



27
28
29
# File 'app/models/taxon_name_relationship/iczn/validating/conserved_work.rb', line 27

def self.subject_relationship_name
  'suppressed work'
end