Class: TaxonNameRelationship::Icn::Accepting

Inherits:
TaxonNameRelationship::Icn show all
Defined in:
app/models/taxon_name_relationship/icn/accepting.rb

Defined Under Namespace

Classes: AlternativeFamilyName, ConservedName, SanctionedName

Class Method Summary collapse

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, object_relationship_name, required_taxon_name_relationships, #subject_properties, subject_relationship_name, #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

.disjoint_subject_classesObject



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

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

.disjoint_taxon_name_relationshipsObject



4
5
6
7
# File 'app/models/taxon_name_relationship/icn/accepting.rb', line 4

def self.disjoint_taxon_name_relationships
  self.parent.disjoint_taxon_name_relationships +
      self.collect_descendants_and_itself_to_s(TaxonNameRelationship::Icn::Unaccepting)
end