530cdb71eb8e16d7a53ba6982fcf11cabe8ea5d5
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.io
.common
.mapping
;
12 import java
.util
.List
;
15 import org
.apache
.log4j
.Logger
;
17 import eu
.etaxonomy
.cdm
.common
.CdmUtils
;
24 public abstract class CdmAttributeMapperBase
{
25 @SuppressWarnings("unused")
26 private static final Logger logger
= Logger
.getLogger(CdmAttributeMapperBase
.class);
28 public abstract Set
<String
> getSourceAttributes();
30 public abstract Set
<String
> getDestinationAttributes();
32 public abstract List
<String
> getSourceAttributeList();
34 public abstract List
<String
> getDestinationAttributeList();
36 public String
toString(){
38 String sourceAtt
= CdmUtils
.concat(",", getSourceAttributeList().toArray(new String
[1]));
39 String destAtt
= CdmUtils
.concat(",", getDestinationAttributeList().toArray(new String
[1]));
40 return this.getClass().getSimpleName() +"[" + sourceAtt
+ "->" + destAtt
+ "]";