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.tcsrdf;
|
11
|
|
12
|
import org.apache.log4j.Logger;
|
13
|
import org.jdom.Content;
|
14
|
import org.jdom.Element;
|
15
|
import org.jdom.Namespace;
|
16
|
|
17
|
|
18
|
/**
|
19
|
* @author a.mueller
|
20
|
* @created 29.07.2008
|
21
|
* @version 1.0
|
22
|
*/
|
23
|
public class CdmUnclearMapper extends CdmSingleAttributeXmlMapperBase {
|
24
|
private static final Logger logger = Logger.getLogger(CdmUnclearMapper.class);
|
25
|
|
26
|
|
27
|
/**
|
28
|
* @param dbValue
|
29
|
* @param cdmValue
|
30
|
*/
|
31
|
public CdmUnclearMapper(String sourceElementString, Namespace sourceNamespace) {
|
32
|
super(sourceElementString, null);
|
33
|
this.sourceNamespace = sourceNamespace;
|
34
|
}
|
35
|
|
36
|
/**
|
37
|
* @param dbValue
|
38
|
* @param cdmValue
|
39
|
*/
|
40
|
public CdmUnclearMapper(String dbAttributString) {
|
41
|
super(dbAttributString, null);
|
42
|
}
|
43
|
|
44
|
public Namespace getSourceNamespace(){
|
45
|
return sourceNamespace;
|
46
|
}
|
47
|
|
48
|
public Class getTypeClass(){
|
49
|
return String.class;
|
50
|
}
|
51
|
|
52
|
public boolean mapsSource(Content content, Element parentElement){
|
53
|
return super.mapsSource(content, parentElement);
|
54
|
}
|
55
|
|
56
|
public String toString(){
|
57
|
return this.getSourceElement();
|
58
|
}
|
59
|
|
60
|
|
61
|
}
|