Project

General

Profile

« Previous | Next » 

Revision 1ffd1c27

Added by Andreas Müller over 3 years ago

ref #9322 remove invalid designation relationship from cdmlib

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/TaxonRelationshipType.java
69 69
	public static final UUID uuidPartialMisappliedNameFor = UUID.fromString("859fb615-b0e8-440b-866e-8a19f493cd36");
70 70
	public static final UUID uuidProParteSynonymFor = UUID.fromString("8a896603-0fa3-44c6-9cd7-df2d8792e577");
71 71
	public static final UUID uuidPartialSynonymFor = UUID.fromString("9d7a5e56-973c-474c-b6c3-a1cb00833a3c");
72
	private static final UUID uuidInvalidDesignationFor = UUID.fromString("605b1d01-f2b1-4544-b2e0-6f08def3d6ed");
73 72

  
74 73
	private static final UUID uuidContradiction = UUID.fromString("a8f03491-2ad6-4fae-a04c-2a4c117a2e9b");
75 74
	private static final UUID uuidCongruentTo = UUID.fromString("60974c98-64ab-4574-bb5c-c110f6db634d");
......
171 170
     *
172 171
     * @see #isAnyMisappliedName()()
173 172
     */
174
	public boolean isMisappliedNameOrInvalidDesignation(){
173
	public boolean isMisappliedName(){
175 174
        if (this.isAnyMisappliedName()){
176 175
            return true;
177
        }else if (isInvalidDesignation()){
178
            return true;
179
        }
180
        return false;
181
    }
182

  
183
    /**
184
     * <code>true</code> if this relationship type is an
185
     * {@link #INVALID_DESIGNATION_FOR() invalid designation}
186
     *
187
     * @see #isAnyMisappliedName()()
188
     */
189
    public boolean isInvalidDesignation(){
190
        if (this.equals(INVALID_DESIGNATION_FOR())){
191
            return true;
192 176
        }
193 177
        return false;
194 178
    }
......
281 265
	 * @return
282 266
	 */
283 267
	public boolean isConceptRelationship(){
284
		if (this.isMisappliedNameOrInvalidDesignation()){
268
		if (this.isMisappliedName()){
285 269
			return false;
286 270
        }else if (this.equals(TAXONOMICALLY_INCLUDED_IN())){
287 271
			return false;
......
381 365
        return getTermByUuid(uuidPartialSynonymFor);
382 366
    }
383 367

  
384
	/**
385
	 * Returns the taxon relationship type "is invalid designation for". This
386
	 * indicates that the {@link eu.etaxonomy.cdm.model.name.TaxonName taxon name} of the {@link TaxonRelationship#getFromTaxon() source taxon}
387
	 * in such a {@link TaxonRelationship taxon relationship} has
388
	 * {@link eu.etaxonomy.cdm.model.name.NomenclaturalStatusType#isInvalid() not been validly published} but was intended to denominate
389
	 * a real taxon which is the same as the one meant by the target {@link Taxon taxon}.<BR>
390
	 * According to the nomenclature codes a not validly published taxon name is
391
	 * not a taxon name at all.<BR>
392
	 * This type is neither symmetric nor transitive.
393
	 */
394
	public static final TaxonRelationshipType INVALID_DESIGNATION_FOR(){
395
		return getTermByUuid(uuidInvalidDesignationFor);
396
	}
397 368
	/**
398 369
	 * Returns the (concept) taxon relationship type "is impossible"
399 370
	 * (contradiction). This is a concept relationship type which means that the

Also available in: Unified diff