Project

General

Profile

Revision 3215b084

ID3215b08448d34571b339ba3ce4a96a6c086a2a41
Parent 7d02ee2f
Child 6efa5535

Added by Andreas Kohlbecker about 1 year ago

ref #8193 collection setter for TaxonName.status

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/TaxonName.java
63 63

  
64 64
import eu.etaxonomy.cdm.common.CdmUtils;
65 65
import eu.etaxonomy.cdm.common.UTF8;
66
import eu.etaxonomy.cdm.model.EntityCollectionSetterAdapter;
67
import eu.etaxonomy.cdm.model.EntityCollectionSetterAdapter.SetterAdapterException;
66 68
import eu.etaxonomy.cdm.model.agent.INomenclaturalAuthor;
67 69
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase;
68 70
import eu.etaxonomy.cdm.model.common.CdmBase;
......
82 84
import eu.etaxonomy.cdm.model.taxon.Synonym;
83 85
import eu.etaxonomy.cdm.model.taxon.Taxon;
84 86
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
85
import eu.etaxonomy.cdm.model.term.DefinedTermBase;
86
import eu.etaxonomy.cdm.model.term.TermType;
87
import eu.etaxonomy.cdm.model.term.TermVocabulary;
88 87
import eu.etaxonomy.cdm.strategy.cache.TaggedText;
89 88
import eu.etaxonomy.cdm.strategy.cache.name.CacheUpdate;
90 89
import eu.etaxonomy.cdm.strategy.cache.name.INameCacheStrategy;
......
1942 1941
        this.status.remove(nomStatus);
1943 1942
    }
1944 1943

  
1944
    public void setStatus(Set<NomenclaturalStatus> nomStatus) throws SetterAdapterException {
1945
        new EntityCollectionSetterAdapter<TaxonName, NomenclaturalStatus>(TaxonName.class, NomenclaturalStatus.class, "status", "addStatus", "removeStatus").setCollection(this, status);
1946
   }
1947

  
1945 1948

  
1946 1949
    /**
1947 1950
     * Generates the composed name string of <i>this</i> non viral taxon name without author

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)