Revision cfd0130d
Added by Katja Luther almost 6 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/Taxon.java | ||
---|---|---|
819 | 819 |
int count = 0; |
820 | 820 |
for (TaxonRelationship rel: this.getRelationsFromThisTaxon()){ |
821 | 821 |
if (rel.getType().equals(TaxonRelationshipType.MISAPPLIED_NAME_FOR()) |
822 |
|| rel.getType().equals(TaxonRelationshipType.PRO_PARTE_MISAPPLIED_NAME_FOR())){ |
|
822 |
|| rel.getType().equals(TaxonRelationshipType.PRO_PARTE_MISAPPLIED_NAME_FOR()) || rel.getType().equals(TaxonRelationshipType.PARTIAL_MISAPPLIED_NAME_FOR())){
|
|
823 | 823 |
count++; |
824 | 824 |
} |
825 | 825 |
} |
... | ... | |
992 | 992 |
return taxa; |
993 | 993 |
} |
994 | 994 |
|
995 |
//***************************** Synonyms ******************************************************/ |
|
996 |
|
|
997 |
// /** |
|
998 |
// * Returns the set of taxa playing the source role in {@link TaxonRelationship taxon relationships} |
|
999 |
// * (with {@link TaxonRelationshipType taxon relationship type} "Pro Parte Synonym for") where |
|
1000 |
// * <i>this</i> taxon plays the target role. |
|
1001 |
// * |
|
1002 |
// * @see #getTaxonRelations() |
|
1003 |
// * @see #getRelationsToThisTaxon() |
|
1004 |
// |
|
1005 |
// */ |
|
1006 |
// @Transient |
|
1007 |
// public Set<Taxon> getProParteSynonyms(){ |
|
1008 |
// Set<Taxon> taxa = new HashSet<>(); |
|
1009 |
// Set<TaxonRelationship> rels = this.getRelationsToThisTaxon(); |
|
1010 |
// for (TaxonRelationship rel: rels){ |
|
1011 |
// TaxonRelationshipType relType = rel.getType(); |
|
1012 |
// if ( relType.equals(TaxonRelationshipType.PRO_PARTE_SYNONYM_FOR())){ |
|
1013 |
// taxa.add(rel.getFromTaxon()); |
|
1014 |
// } |
|
1015 |
// } |
|
1016 |
// return taxa; |
|
1017 |
// } |
|
1018 | 995 |
|
1019 | 996 |
|
1020 | 997 |
|
Also available in: Unified diff
add also partial misappliedNames to computeMisapliedNameRelations