Class: TaxonNameRelationship::Iczn::Validating

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

Direct Known Subclasses

ConservedName, ConservedWork, UncertainPlacement

Defined Under Namespace

Classes: ConservedName, ConservedWork, UncertainPlacement

Class Method Summary collapse

Methods inherited from TaxonNameRelationship::Iczn

valid_object_ranks, valid_subject_ranks

Methods inherited from TaxonNameRelationship

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

.disjoint_object_classesObject



14
15
16
17
18
19
20
21
# File 'app/models/taxon_name_relationship/iczn/validating.rb', line 14

def self.disjoint_object_classes
  self.parent.disjoint_object_classes +
      self.collect_descendants_and_itself_to_s(TaxonNameClassification::Iczn::Available::Valid) +
      self.collect_to_s(TaxonNameClassification::Iczn::Available::OfficialIndexOfAvailableNames,
          TaxonNameClassification::Iczn::Available::OfficialListOfAvailableNames,
          TaxonNameClassification::Iczn::Available::OfficialListOfWorksApprovedAsAvailable)

end

.disjoint_subject_classesObject



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

def self.disjoint_subject_classes
  self.parent.disjoint_subject_classes +
      self.collect_descendants_and_itself_to_s(TaxonNameClassification::Iczn::Unavailable,
          TaxonNameClassification::Iczn::Available::Invalid)
end

.disjoint_taxon_name_relationshipsObject



3
4
5
6
# File 'app/models/taxon_name_relationship/iczn/validating.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)
end

.object_relationship_nameObject



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

def self.object_relationship_name
  'invalid'
end

.subject_relationship_nameObject



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

def self.subject_relationship_name
  'valid'
end