Project

General

Profile

« Previous | Next » 

Revision 84046c2e

Added by Andreas Müller over 6 years ago

ref #7336, ref #7334 add pro parte synonym, partial synonym and partial misapplied name as taxon relationship types

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/Taxon.java
690 690
     * The taxon relationship will also be added to the set of taxon
691 691
     * relationships to the other (pro parte misapplied name) taxon involved in the created relationship.
692 692
     *
693
     * @param proPartemisappliedNameTaxon   the taxon which plays the source role in the new taxon relationship
693
     * @param proParteMisappliedNameTaxon   the taxon which plays the source role in the new taxon relationship
694 694
     * @param citation              the reference source for the new taxon relationship
695 695
     * @param microcitation         the string with the details describing the exact localisation within the reference
696 696
     * @return
......
702 702
     * @see                         #getRelationsFromThisTaxon()
703 703
     * @see                         #getRelationsToThisTaxon()
704 704
     */
705
    public TaxonRelationship addProParteMisappliedName(Taxon proPartemisappliedNameTaxon, Reference citation, String microcitation) {
706
        return proPartemisappliedNameTaxon.addTaxonRelation(this, TaxonRelationshipType.PRO_PARTE_MISAPPLIED_NAME_FOR(), citation, microcitation);
705
    public TaxonRelationship addProParteMisappliedName(Taxon proParteMisappliedNameTaxon, Reference citation, String microcitation) {
706
        return proParteMisappliedNameTaxon.addTaxonRelation(this, TaxonRelationshipType.PRO_PARTE_MISAPPLIED_NAME_FOR(), citation, microcitation);
707
    }
708

  
709
    /**
710
     * Creates a new {@link TaxonRelationship taxon relationship} (with {@link TaxonRelationshipType taxon relationship type}
711
     * "partial misapplied name for") instance where <i>this</i> taxon plays the target role
712
     * and adds it to the set of {@link #getRelationsToThisTaxon() taxon relationships to <i>this</i> taxon}.
713
     * The taxon relationship will also be added to the set of taxon
714
     * relationships to the other (pro parte misapplied name) taxon involved in the created relationship.
715
     *
716
     * @param partialMisappliedNameTaxon   the taxon which plays the source role in the new taxon relationship
717
     * @param citation              the reference source for the new taxon relationship
718
     * @param microcitation         the string with the details describing the exact localization within the reference
719
     * @return
720
     * @see                         #addMisappliedName(Taxon, Reference, String)
721
     * @see                         #addProParteMisappliedName(Taxon, Reference, String)
722
     * @see                         #getMisappliedNames()
723
     * @see                         #addTaxonRelation(Taxon, TaxonRelationshipType, Reference, String)
724
     * @see                         #addTaxonRelation(TaxonRelationship)
725
     * @see                         #getTaxonRelations()
726
     * @see                         #getRelationsFromThisTaxon()
727
     * @see                         #getRelationsToThisTaxon()
728
     */
729
    public TaxonRelationship addPartialMisappliedName(Taxon partialMisappliedNameTaxon, Reference citation, String microcitation) {
730
        return partialMisappliedNameTaxon.addTaxonRelation(this, TaxonRelationshipType.PARTIAL_MISAPPLIED_NAME_FOR(), citation, microcitation);
731
    }
732

  
733
    /**
734
     * Creates a new {@link TaxonRelationship taxon relationship} (with {@link TaxonRelationshipType taxon relationship type}
735
     * "pro parte synonym for") instance where <i>this</i> taxon plays the target role
736
     * and adds it to the set of {@link #getRelationsToThisTaxon() taxon relationships to <i>this</i> taxon}.
737
     * The taxon relationship will also be added to the set of taxon
738
     * relationships to the other (pro parte synonym) taxon involved in the created relationship.
739
     *
740
     * @param proParteTaxon         the taxon which plays the source role in the new taxon relationship
741
     * @param citation              the reference source for the new taxon relationship
742
     * @param microcitation         the string with the details describing the exact localisation within the reference
743
     * @return
744
     * @see                         #getMisappliedNames()
745
     * @see                         #addProParteMisappliedName(Taxon, Reference, String)
746
     * @see                         #addTaxonRelation(Taxon, TaxonRelationshipType, Reference, String)
747
     * @see                         #addTaxonRelation(TaxonRelationship)
748
     * @see                         #getTaxonRelations()
749
     * @see                         #getRelationsFromThisTaxon()
750
     * @see                         #getRelationsToThisTaxon()
751
     */
752
    public TaxonRelationship addProparteSynonym(Taxon proParteTaxon, Reference citation, String microcitation) {
753
        return proParteTaxon.addTaxonRelation(this, TaxonRelationshipType.PRO_PARTE_SYNONYM_FOR(), citation, microcitation);
754
    }
755

  
756
    /**
757
     * Creates a new {@link TaxonRelationship taxon relationship} instance with
758
     * {@link TaxonRelationshipType taxon relationship type} {@link TaxonRelationshipType#PARTIAL_SYNONYM_FOR()
759
     * partial synonym for} where <i>this</i> taxon plays the target role
760
     * and adds it to the set of {@link #getRelationsToThisTaxon() taxon relationships to <i>this</i> taxon}.
761
     * The taxon relationship will also be added to the set of taxon
762
     * relationships to the other (partial synonym) taxon involved in the created relationship.
763
     *
764
     * @param partialTaxon         the taxon which plays the source role in the new taxon relationship
765
     * @param citation             the reference source for the new taxon relationship
766
     * @param microcitation        the string with the details describing the exact localisation within the reference
767
     * @return
768
     * @see                         #addProparteSynonym(Taxon, Reference, String)
769
     * @see                         #addTaxonRelation(Taxon, TaxonRelationshipType, Reference, String)
770
     * @see                         #addTaxonRelation(TaxonRelationship)
771
     * @see                         #getTaxonRelations()
772
     * @see                         #getRelationsFromThisTaxon()
773
     * @see                         #getRelationsToThisTaxon()
774
     */
775
    public TaxonRelationship addPartialSynonym(Taxon partialTaxon, Reference citation, String microcitation) {
776
        return partialTaxon.addTaxonRelation(this, TaxonRelationshipType.PARTIAL_SYNONYM_FOR(), citation, microcitation);
707 777
    }
708 778

  
709 779
    /**

Also available in: Unified diff