serial Version ID for HomGroup
[cdmlib.git] / cdmlib-model / src / main / java / eu / etaxonomy / cdm / model / name / BotanicalName.java
index 9e635ebe3ac060f2377d6b3459421c4286106690..56958f2c3198b6116a13de18dc809a54aec19b32 100644 (file)
@@ -318,6 +318,7 @@ public class BotanicalName extends NonViralName<BotanicalName> implements Clonea
         * Checks if this name is an autonym.<BR>
         * An autonym is a taxon name that has equal specific and infra specific epithets.<BR>
         * {@link http://ibot.sav.sk/icbn/frameset/0010Ch2Sec1a006.htm#6.8. Vienna Code ยง6.8}
+        * or a taxon name that has equal generic and infrageneric epithets (A22.2)
         * @return true, if name has Rank, Rank is below species and species epithet equals infraSpeciesEpithtet, else false
         */
        @Override
@@ -325,6 +326,9 @@ public class BotanicalName extends NonViralName<BotanicalName> implements Clonea
                if (this.getRank() != null && this.getSpecificEpithet() != null && this.getInfraSpecificEpithet() != null && 
                                this.getRank().isInfraSpecific() && this.getSpecificEpithet().trim().equals(this.getInfraSpecificEpithet().trim())){
                        return true;
+               }else if (this.getRank() != null && this.getGenusOrUninomial() != null && this.getInfraGenericEpithet() != null && 
+                               this.getRank().isInfraGeneric() && this.getGenusOrUninomial().trim().equals(this.getInfraGenericEpithet().trim())){
+                       return true;
                }else{
                        return false;
                }