Project

General

Profile

Revision 91bfaec2

ID91bfaec27fe0aee15cfa5807cdb5ac27ee17b995
Parent 8c00d496
Child 8a5b5de5

Added by Andreas Müller over 8 years ago

change SpecimenTypeParser

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/parser/SpecimenTypeParser.java
9 9
*/
10 10
package eu.etaxonomy.cdm.strategy.parser;
11 11

  
12
import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignation;
13 12
import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignationStatus;
14 13
import eu.etaxonomy.cdm.strategy.exceptions.UnknownCdmTypeException;
15 14

  
......
29 28
	/**
30 29
	 * see also CentralAfricaFernsTaxonParser#handleTypeLocationPart
31 30
	 */
32
	public static final String typeTypePattern = "(holo|lecto|iso|isolecto|syn|isosyn|neo|isoneo)\\.?";
31
	public static final String typeTypePattern = "(?i)(holo|lecto|iso|isolecto|syn|isosyn|neo|isoneo|type)\\.?";
33 32
	public static final String collectionPattern = "^[A-Z]+(\\-[A-Z]+)?";
34 33
	
35 34
	
......
54 53
			status = SpecimenTypeDesignationStatus.NEOTYPE();
55 54
		}else if (type.equalsIgnoreCase("isoneo")){
56 55
			status = SpecimenTypeDesignationStatus.ISONEOTYPE();
56
		}else if (type.equalsIgnoreCase("type")){
57
			status = SpecimenTypeDesignationStatus.TYPE();
57 58
		}else{
58 59
			String message = "Type Status not supported: " + type;
59 60
			throw new UnknownCdmTypeException(message);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)