Project

General

Profile

Revision 0ec16ff8

ID0ec16ff87b001528a1c02e700c6fa65211887d21
Parent 4a39cd98
Child 1e4e650e

Added by Patrick Plitzner about 4 years ago

Implement isOrphaned() #5824

Synonym counts as orphaned if all of the accepted taxa are orphaned

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/Synonym.java
250 250
	@Override
251 251
    @Transient
252 252
	public boolean isOrphaned() {
253
		return false;
253
	    for (SynonymRelationship synonymRelationship : getSynonymRelations()) {
254
            if(!synonymRelationship.getAcceptedTaxon().isOrphaned()){
255
                return false;
256
            }
257
        }
258
		return true;
254 259
	}
255 260
	/**
256 261
	 * Returns the set of {@link SynonymRelationshipType synonym relationship types} of the

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)