3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.cdm
.io
.common
;
13 import java
.util
.HashMap
;
15 import java
.util
.UUID
;
17 import org
.apache
.log4j
.Logger
;
19 import eu
.etaxonomy
.cdm
.model
.common
.CdmBase
;
26 public class XmlExportState
<CONFIG
extends XmlExportConfiguratorBase
> extends ExportStateBase
<CONFIG
> {
27 private static final Logger logger
= Logger
.getLogger(XmlExportState
.class);
29 private Map
<UUID
, String
> xmlIdMap
= new HashMap
<UUID
, String
>();
33 // * @see eu.etaxonomy.cdm.io.common.IoStateBase#initialize(eu.etaxonomy.cdm.io.common.IoConfiguratorBase)
36 // public void initialize(XmlExportConfiguratorBase config) {
41 public XmlExportState(CONFIG config
) {
45 public void putDbId(CdmBase cdmBase
, String xmlId
){
47 xmlIdMap
.put(cdmBase
.getUuid(), xmlId
);
49 logger
.warn("CdmBase was (null) and could not be added to xmlIdMap");
53 public String
getDbId(CdmBase cdmBase
){
55 return xmlIdMap
.get(cdmBase
.getUuid());
57 logger
.warn("CdmBase was (null). No entries in xmlIdMap available");