1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.cdm.io.redlist.bfnXml.out;
|
11
|
|
12
|
import org.apache.log4j.Logger;
|
13
|
import org.jdom2.Attribute;
|
14
|
import org.jdom2.Element;
|
15
|
|
16
|
import eu.etaxonomy.cdm.io.common.CdmExportBase;
|
17
|
import eu.etaxonomy.cdm.io.common.mapping.out.IExportTransformer;
|
18
|
import eu.etaxonomy.cdm.io.redlist.bfnXml.BfnXmlConstants;
|
19
|
|
20
|
/**
|
21
|
*
|
22
|
* @author pplitzner
|
23
|
* @date May 3, 2016
|
24
|
*
|
25
|
*/
|
26
|
public abstract class BfnXmlExportBase extends CdmExportBase<BfnXmlExportConfigurator, BfnXmlExportState, IExportTransformer> {
|
27
|
|
28
|
private static final long serialVersionUID = 1115122553345412881L;
|
29
|
|
30
|
protected static final Logger logger = Logger.getLogger(BfnXmlExportBase.class);
|
31
|
|
32
|
public BfnXmlExportBase() {
|
33
|
super();
|
34
|
}
|
35
|
|
36
|
protected void addIwert(Element parent, String standardNameValue, String wertString) {
|
37
|
Element iwert = new Element(BfnXmlConstants.EL_IWERT);
|
38
|
iwert.setAttribute(new Attribute(BfnXmlConstants.ATT_STANDARDNAME, standardNameValue));
|
39
|
parent.addContent(iwert);
|
40
|
|
41
|
Element wert = new Element(BfnXmlConstants.EL_WERT);
|
42
|
wert.addContent(wertString);
|
43
|
iwert.addContent(wert);
|
44
|
}
|
45
|
}
|