Project

General

Profile

Revision 82ceb6d9

ID82ceb6d928a07581978b7d0f740f6135c4cb620c
Parent 9cadeef4
Child 0e34b7ad

Added by Andreas Müller over 2 years ago

ref #6581 nomRef to OriginalSource allow setNomRef by Interface for compiling

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/ITaxonNameBase.java
20 20
import eu.etaxonomy.cdm.model.description.DescriptionElementSource;
21 21
import eu.etaxonomy.cdm.model.description.TaxonNameDescription;
22 22
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit;
23
import eu.etaxonomy.cdm.model.reference.INomenclaturalReference;
23 24
import eu.etaxonomy.cdm.model.reference.Reference;
24 25
import eu.etaxonomy.cdm.model.taxon.Synonym;
25 26
import eu.etaxonomy.cdm.model.taxon.Taxon;
......
355 356
    public void setNomenclaturalReference(Reference nomenclaturalReference);
356 357

  
357 358
    /**
359
     * Same as setNomenclaturalReferences, to also allow interfaces to be used.
360
     * @see #setNomenclaturalReference(Reference)
361
     * @param nomenclaturalReference
362
     */
363
    public void setNomenclaturalReference(INomenclaturalReference nomenclaturalReference);
364

  
365
    /**
358 366
     * Returns the details string of the {@link #getNomenclaturalReference() nomenclatural reference} assigned
359 367
     * to <i>this</i> taxon name. The details describe the exact localisation within
360 368
     * the publication used as nomenclature reference. These are mostly
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/TaxonName.java
2279 2279
        getNomenclaturalSource(true).setCitation(nomenclaturalReference);
2280 2280
        checkNullSource();
2281 2281
    }
2282
    @Override
2283
    public void setNomenclaturalReference(INomenclaturalReference nomenclaturalReference){
2284
        setNomenclaturalReference(CdmBase.deproxy(nomenclaturalReference, Reference.class));
2285
    }
2286

  
2282 2287

  
2283 2288

  
2284 2289
    /**

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)