From 66b77c3e5a49684d98c8a470fc11f88e90d94b82 Mon Sep 17 00:00:00 2001 From: "m.geoffroy" Date: Thu, 5 Jun 2008 14:57:05 +0000 Subject: [PATCH] --- .../cdm/model/name/TaxonNameBase.java | 94 ++++++++++++++++--- 1 file changed, 81 insertions(+), 13 deletions(-) diff --git a/cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/TaxonNameBase.java b/cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/TaxonNameBase.java index 14de364e96..b1bf3de05e 100644 --- a/cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/TaxonNameBase.java +++ b/cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/TaxonNameBase.java @@ -515,6 +515,23 @@ public abstract class TaxonNameBase getSpecimenTypeDesignations() { + return this.getHomotypicalGroup().getTypeDesignations(); + } + /** * Creates and adds a new {@link NameTypeDesignation name type designation} * to this taxon name's set of name type designations. @@ -557,6 +574,7 @@ public abstract class TaxonNameBase getTaxonBases() { return this.taxonBases; } + /** + * @see #getTaxonBases() + */ protected void setTaxonBases(Set taxonBases) { if (taxonBases == null){ taxonBases = new HashSet(); @@ -631,6 +677,13 @@ public abstract class TaxonNameBase The set of taxa this TaxonName belongs to + * Returns the set of {@link taxon.Taxon taxa} ("accepted/correct" names according to any + * reference) that are based on this taxon name. This set is a subset of + * the set returned by getTaxonBases(). + * + * @see taxon.Taxon + * @see #getTaxonBases() + * @see #getSynonyms() */ @Transient public Set getTaxa(){ @@ -672,8 +730,13 @@ public abstract class TaxonNameBase getSynonyms() { @@ -686,12 +749,17 @@ public abstract class TaxonNameBase getSpecimenTypeDesignations() { - return this.getHomotypicalGroup().getTypeDesignations(); - } - // *********** + /** + * Returns the boolean value indicating whether a given taxon name belongs + * to the same {@link HomotypicalGroup homotypical group} as this taxon name (true) + * or not (false). Returns "true" only if the homotypical groups of both + * taxon names exist and if they are identical. + * + * @param homoTypicName the taxon name the homotypical group of which is to be checked + * @return the boolean value of the check + * @see HomotypicalGroup + */ public boolean isHomotypic(TaxonNameBase homoTypicName) { if (homoTypicName == null) { return false; -- 2.34.1