Project

General

Profile

« Previous | Next » 

Revision 95b83588

Added by Andreas Müller almost 8 years ago

Added nom. cons. des. status #5662

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/NomenclaturalStatusType.java
99 99
	private static final UUID uuidSubnudum = UUID.fromString("92a76bd0-6ea8-493f-98e0-4be0b98c092f");
100 100
	private static final UUID uuidCombNov = UUID.fromString("ed508710-deef-44b1-96f6-1ce6d2c9c884");
101 101
	private static final UUID uuidOrthographyRejected = UUID.fromString("39a25673-f716-4ec7-ae27-2498fce43166");
102
	private static final UUID uuidConservedDesig = UUID.fromString("4e9c9702-a74d-4033-9d47-792ad123712c");
103
	private static final UUID uuidIned = UUID.fromString("51429574-c6f9-4aa1-bab9-0bbc5b160ba1");
102 104

  
103 105
	//zoological uuids
104 106
	public static final UUID uuidIcznNomStatusVocabulary = UUID.fromString("5e3c08e9-13a9-498e-861e-b9b5656ab6ac");
......
209 211
	public boolean isInvalidType(){
210 212
		if (this.equals(INVALID())
211 213
			|| this.equals(NUDUM())
212
			|| 	this.equals(PROVISIONAL())
214
			|| 	this.equals(PROVISIONAL()) || this.equals(INED())
213 215
			|| 	this.equals(COMBINATION_INVALID())
214 216
			|| 	this.equals(OPUS_UTIQUE_OPPR())
215 217
			||  this.equals(ZOO_NOT_AVAILABLE())
......
414 416
	 * A "proposed to be conserved" taxon name is therefore still "illegitimate"
415 417
	 * ("invalid" for zoological names).
416 418
	 *
419
	 * {@link https://dev.e-taxonomy.eu/trac/ticket/5662}
420
	 *
417 421
	 * @see  #VALID()
418 422
	 * @see  #isIllegitimateType()
419 423
	 * @see  #isLegitimateType()
420 424
	 * @see  #CONSERVED()
425
	 * @see  #CONSERVED_DESIG()
421 426
	 * @see  NameRelationshipType#CONSERVED_AGAINST()
422 427
	 */
423 428
	public static final NomenclaturalStatusType CONSERVED_PROP(){
424 429
		return getTermByUuid(uuidConservedProp);
425 430
	}
426 431

  
432
    /**
433
     * Returns the nomenclatural status type "designated to be conserved". A
434
     * "valid" ("available") {@link TaxonNameBase taxon name} is "designated to be conserved"
435
     * if, even though by the strict application of the rules of
436
     * the {@link NomenclaturalCode nomenclature code}, and especially of the principle of priority,
437
     * it is "illegitimate" ("invalid" for {@link ZoologicalName zoological names}),
438
     * it has been submitted to competent authorities in order to decide whether
439
     * it should be handled as "legitimate".<BR>
440
     * A "proposed to be conserved" taxon name is therefore still "illegitimate"
441
     * ("invalid" for zoological names).
442
     *
443
     * {@link https://dev.e-taxonomy.eu/trac/ticket/5662}
444
     *
445
     * @see  #VALID()
446
     * @see  #isIllegitimateType()
447
     * @see  #isLegitimateType()
448
     * @see  #CONSERVED()
449
     * @see  #CONSERVED_PROP()()
450
     * @see  NameRelationshipType#CONSERVED_AGAINST()
451
     */
452
    public static final NomenclaturalStatusType CONSERVED_DESIG(){
453
        return getTermByUuid(uuidConservedDesig);
454
    }
455

  
456

  
457

  
427 458
	/**
428 459
	 * Returns the nomenclatural status type "proposed to be conserved
429 460
	 * (orthography)". A {@link TaxonNameBase taxon name} is "proposed to be conserved
......
602 633
		return getTermByUuid(uuidSanctioned);
603 634
	}
604 635

  
636
	/**
637
     * Returns the nomenclatural status type "inedited". {@link BotanicalName Botanical names}
638
     * are "inedited" if they were not yet published.
639
     *
640
     * @see  #isInvalidType()
641
     * @see #PROVISIONAL()
642
     * @deprecated this status is deprecated as it is a duplicate for Provisional
643
     */
644
	@Deprecated
645
    public static final NomenclaturalStatusType INED(){
646
        return getTermByUuid(uuidIned);
647
    }
648

  
605 649
	/**
606 650
	 * Returns the nomenclatural status type "invalid" (this corresponds to
607 651
	 * "not available" for {@link ZoologicalName zoological names}). The use of "invalid"
......
851 895
			throw new NullPointerException("Status label is NULL in getNomenclaturalStatusTypeBylabel");
852 896
		}
853 897
		NomenclaturalStatusType result = null;
854
		if (statusLabel == null){
855
			throw new NullPointerException("Status label is NULL in getNomenclaturalStatusTypeByLabel");
856
		}
857 898
		if (labelMap == null){
858 899
			return null;
859 900
		}
cdmlib-model/src/main/resources/terms/NomenclaturalStatusType.csv
8 8
"04338fdd-c12a-402f-a1ca-68b4bf0be042",,"Utique Rejected","Utique Rejected","nom. utique rej."
9 9
"82bab006-5aed-4301-93ec-980deb30cbb1",,"Conserved Prop","Conserved Prop","nom. cons. prop."
10 10
"02f82bc5-1066-454b-a023-11967cba9092",,"Orthography Conserved Prop","Orthography Conserved Prop","nom. orth. cons. prop."
11
"4e9c9702-a74d-4033-9d47-792ad123712c",,"Conserved Desig","Conserved Desig","nom. cons. des."
11 12
"51a3613c-b53b-4561-b0cd-9163d91c15aa",,"Legitimate","Legitimate","nom. legit."
12 13
"3b8a8519-420f-4dfa-b050-b410cc257961",,"Alternative","Alternative","nom. altern."
13 14
"05fcb68f-af60-4851-b912-892512058897",,"Novum","Novum","nom. nov."

Also available in: Unified diff