logging for missing extension/marker type
[cdmlib.git] / cdmlib-io / src / main / java / eu / etaxonomy / cdm / io / common / mapping / CdmAttributeMapperBase.java
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.common.mapping;
11
12 import java.util.List;
13 import java.util.Set;
14
15 import org.apache.log4j.Logger;
16
17 import eu.etaxonomy.cdm.common.CdmUtils;
18
19 /**
20 * @author a.mueller
21 * @created 05.08.2008
22 * @version 1.0
23 */
24 public abstract class CdmAttributeMapperBase extends CdmMapperBase{
25 @SuppressWarnings("unused")
26 private static final Logger logger = Logger.getLogger(CdmAttributeMapperBase.class);
27
28 public abstract Set<String> getSourceAttributes();
29
30 public abstract Set<String> getDestinationAttributes();
31
32 public abstract List<String> getSourceAttributeList();
33
34 public abstract List<String> getDestinationAttributeList();
35
36 public String toString(){
37 String sourceAtt = CdmUtils.concat(",", getSourceAttributeList().toArray(new String[1]));
38 String destAtt = CdmUtils.concat(",", getDestinationAttributeList().toArray(new String[1]));
39 return this.getClass().getSimpleName() +"[" + sourceAtt + "->" + destAtt + "]";
40 }
41
42 }