Revision 794be65e
Added by Andreas Müller over 1 year ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/markup/MarkupNomenclatureImport.java | ||
---|---|---|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
9 |
|
|
10 | 9 |
package eu.etaxonomy.cdm.io.markup; |
11 | 10 |
|
12 | 11 |
import java.util.HashMap; |
... | ... | |
19 | 18 |
import javax.xml.stream.events.XMLEvent; |
20 | 19 |
|
21 | 20 |
import org.apache.commons.lang.StringUtils; |
22 |
import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger; |
|
21 |
import org.apache.logging.log4j.LogManager; |
|
22 |
import org.apache.logging.log4j.Logger; |
|
23 | 23 |
|
24 | 24 |
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase; |
25 | 25 |
import eu.etaxonomy.cdm.model.common.VerbatimTimePeriod; |
... | ... | |
50 | 50 |
/** |
51 | 51 |
* @author a.mueller |
52 | 52 |
* @since 30.05.2012 |
53 |
* |
|
54 | 53 |
*/ |
55 | 54 |
public class MarkupNomenclatureImport extends MarkupImportBase { |
55 |
|
|
56 | 56 |
@SuppressWarnings("unused") |
57 | 57 |
private static final Logger logger = LogManager.getLogger(MarkupNomenclatureImport.class); |
58 | 58 |
|
59 |
|
|
60 |
// private NonViralNameParserImpl parser = new NonViralNameParserImpl(); |
|
61 |
|
|
62 | 59 |
private final MarkupSpecimenImport specimenImport; |
63 | 60 |
|
64 | 61 |
public MarkupNomenclatureImport(MarkupDocumentImport docImport, MarkupSpecimenImport specimenImport) { |
... | ... | |
121 | 118 |
state.setLatestAuthorInHomotype(null); |
122 | 119 |
// TODO handle missing end element |
123 | 120 |
throw new IllegalStateException("Homotypes has no closing tag"); |
124 |
|
|
125 | 121 |
} |
126 | 122 |
|
127 | 123 |
private void handleNameType(MarkupImportState state, XMLEventReader reader, |
... | ... | |
181 | 177 |
} |
182 | 178 |
// TODO handle missing end element |
183 | 179 |
throw new IllegalStateException("Homotypes has no closing tag"); |
184 |
|
|
185 | 180 |
} |
186 | 181 |
|
187 | 182 |
/** |
Also available in: Unified diff
cleanup