Revision f97ff6bc
Added by Andreas Müller over 12 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/HomotypicalGroup.java | ||
---|---|---|
35 | 35 |
import eu.etaxonomy.cdm.model.common.AnnotatableEntity; |
36 | 36 |
import eu.etaxonomy.cdm.model.reference.Reference; |
37 | 37 |
import eu.etaxonomy.cdm.model.taxon.Synonym; |
38 |
import eu.etaxonomy.cdm.model.taxon.SynonymRelationship; |
|
39 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
|
38 | 40 |
import eu.etaxonomy.cdm.model.taxon.TaxonComparator; |
39 | 41 |
|
40 | 42 |
|
... | ... | |
360 | 362 |
* according to the respective reference, then they will not be included in |
361 | 363 |
* the result set. |
362 | 364 |
* |
365 |
* @deprecated synonyms should not depend on the sec. Therefore this method will be removed in |
|
366 |
* version 3.1 or higher. Use {@link Taxon#getSynonymsInGroup(HomotypicalGroup)} instead. But be |
|
367 |
* aware that the semantics is slightly different. |
|
363 | 368 |
* @param sec the reference whose treatment is to be considered |
364 | 369 |
* @return the ordered list of synonyms |
365 | 370 |
* @see TaxonNameBase#getSynonyms() |
366 | 371 |
* @see TaxonNameBase#getTaxa() |
367 | 372 |
* @see taxon.Synonym |
368 | 373 |
*/ |
374 |
@Deprecated |
|
369 | 375 |
public List<Synonym> getSynonymsInGroup(Reference sec){ |
370 | 376 |
List<Synonym> result = new ArrayList<Synonym>(); |
371 | 377 |
for (TaxonNameBase<?, ?>name : this.getTypifiedNames()){ |
... | ... | |
379 | 385 |
Collections.sort(result, new TaxonComparator()); |
380 | 386 |
return result; |
381 | 387 |
} |
382 |
|
|
383 |
|
|
388 |
|
|
384 | 389 |
/** |
385 | 390 |
* Creates a basionym relationship to all other names in this names homotypical |
386 | 391 |
* group. |
Also available in: Unified diff
change getSynonymsInGroup to synonymRelationship dependency (not sec dependency anymore).
See #2580