Revision f4502cd4
Added by Andreas Müller over 12 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/markup/MarkupDocumentImport.java | ||
---|---|---|
1291 | 1291 |
if (str.matches(SpecimenTypeParser.typeTypePattern)){ |
1292 | 1292 |
SpecimenTypeDesignationStatus status; |
1293 | 1293 |
try { |
1294 |
status = SpecimenTypeParser.makeSpecimentTypeStatus(str);
|
|
1294 |
status = SpecimenTypeParser.parseSpecimenTypeStatus(str);
|
|
1295 | 1295 |
} catch (UnknownCdmTypeException e) { |
1296 | 1296 |
String message = "Specimen type status '%s' not recognized by parser"; |
1297 | 1297 |
message = String.format(message, str); |
cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/parser/SpecimenTypeParser.java | ||
---|---|---|
34 | 34 |
|
35 | 35 |
|
36 | 36 |
|
37 |
public static SpecimenTypeDesignationStatus makeSpecimentTypeStatus(String type) throws UnknownCdmTypeException {
|
|
37 |
public static SpecimenTypeDesignationStatus parseSpecimenTypeStatus(String type) throws UnknownCdmTypeException {
|
|
38 | 38 |
//TODO further types |
39 | 39 |
SpecimenTypeDesignationStatus status; |
40 | 40 |
if (type.equalsIgnoreCase("iso")){ |
Also available in: Unified diff
rename specimen type status parse method