TaxonDescription taxonDescription = null;
Set<TaxonDescription> descriptions= taxon.getDescriptions();
- if (state.getDescriptionPerTaxon(taxon.getUuid()) != null){
- taxonDescription = state.getDescriptionPerTaxon(taxon.getUuid());
+ if (state.getIndividualsAssociationDescriptionPerTaxon(taxon.getUuid()) != null){
+ taxonDescription = state.getIndividualsAssociationDescriptionPerTaxon(taxon.getUuid());
}
if (taxonDescription == null && !descriptions.isEmpty() && state.getConfig().isReuseExistingDescriptiveGroups()){
for (TaxonDescription desc: descriptions){
if(sourceNotLinkedToElement(taxonDescription,state.getRef(),null)) {
taxonDescription.addSource(OriginalSourceType.Import, null, null, state.getRef(), null);
}
- state.setDescriptionGroup(taxonDescription);
+ state.setIndividualsAssociationDescriptionPerTaxon(taxonDescription);
taxon.addDescription(taxonDescription);
}
List<IdentifiableSource> issTmp = new ArrayList<>();//getCommonService().list(IdentifiableSource.class, null, null, null, null);
List<DescriptionElementSource> issTmp2 = new ArrayList<>();//getCommonService().list(DescriptionElementSource.class, null, null, null, null);
- Set<OriginalSourceBase> osbSet = new HashSet<OriginalSourceBase>();
+ Set<OriginalSourceBase> osbSet = new HashSet<>();
if(issTmp2!=null) {
osbSet.addAll(issTmp2);
}
taxonDescription.addSource(OriginalSourceType.Import,null, null, state.getRef(), null);
}
- state.setDescriptionGroup(taxonDescription);
+ state.setIndividualsAssociationDescriptionPerTaxon(taxonDescription);
IndividualsAssociation indAssociation = IndividualsAssociation.NewInstance();
Feature feature = makeFeature(state.getDerivedUnitBase());
private Classification defaultClassification = null;
private Reference ref = null;
- private HashMap<UUID, TaxonDescription> descriptionsPerTaxon = new HashMap<>();
+ private HashMap<UUID, TaxonDescription> individualsAssociationDescriptionPerTaxon = new HashMap<>();
private DerivedUnit derivedUnitBase;
private SpecimenImportReport report;
public Reference getRef() {
return ref;
}
-
public void setRef(Reference ref) {
this.ref = ref;
}
- public TaxonDescription getDescriptionPerTaxon(UUID taxonUUID) {
- return descriptionsPerTaxon.get(taxonUUID);
+ public TaxonDescription getIndividualsAssociationDescriptionPerTaxon(UUID taxonUUID) {
+ return individualsAssociationDescriptionPerTaxon.get(taxonUUID);
}
- public void setDescriptionGroup(TaxonDescription description) {
- this.descriptionsPerTaxon.put(description.getTaxon().getUuid(), description);
+ public void setIndividualsAssociationDescriptionPerTaxon(TaxonDescription description) {
+ this.individualsAssociationDescriptionPerTaxon.put(description.getTaxon().getUuid(), description);
}
public DerivedUnit getDerivedUnitBase() {
return derivedUnitBase;
}
-
public void setDerivedUnitBase(DerivedUnit derivedUnitBase) {
this.derivedUnitBase = derivedUnitBase;
}