1 |
1e21a025
|
Andreas Müller
|
/**
|
2 |
01be5674
|
Andreas Müller
|
* 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 |
1e21a025
|
Andreas Müller
|
|
12 |
|
|
import org.apache.log4j.Logger;
|
13 |
|
|
import org.jdom.Content;
|
14 |
|
|
import org.jdom.Element;
|
15 |
|
|
import org.jdom.Namespace;
|
16 |
|
|
|
17 |
|
|
/**
|
18 |
|
|
* @author a.mueller
|
19 |
01be5674
|
Andreas Müller
|
* @created 29.07.2008
|
20 |
|
|
* @version 1.0
|
21 |
1e21a025
|
Andreas Müller
|
*/
|
22 |
01be5674
|
Andreas Müller
|
|
23 |
1bfab135
|
Andreas Müller
|
public class CdmTextElementMapper extends CdmIoXmlMapperBase {
|
24 |
1e21a025
|
Andreas Müller
|
private static final Logger logger = Logger.getLogger(CdmTextElementMapper.class);
|
25 |
|
|
|
26 |
|
|
/**
|
27 |
|
|
* @param dbValue
|
28 |
|
|
* @param cdmValue
|
29 |
|
|
*/
|
30 |
|
|
public CdmTextElementMapper(String sourceElementString,Namespace sourceNamespace, String cdmAttributeString) {
|
31 |
|
|
super(sourceElementString, cdmAttributeString);
|
32 |
|
|
this.sourceNamespace = sourceNamespace;
|
33 |
|
|
}
|
34 |
|
|
|
35 |
|
|
/**
|
36 |
|
|
* @param dbValue
|
37 |
|
|
* @param cdmValue
|
38 |
|
|
*/
|
39 |
|
|
public CdmTextElementMapper(String dbAttributString, String cdmAttributeString) {
|
40 |
|
|
super(dbAttributString, cdmAttributeString);
|
41 |
|
|
}
|
42 |
|
|
|
43 |
|
|
public Namespace getSourceNamespace(){
|
44 |
|
|
return sourceNamespace;
|
45 |
|
|
}
|
46 |
|
|
|
47 |
|
|
public Class getTypeClass(){
|
48 |
|
|
return String.class;
|
49 |
|
|
}
|
50 |
|
|
|
51 |
|
|
public boolean mapsSource(Content content, Element parentElement){
|
52 |
|
|
return super.mapsSource(content, parentElement);
|
53 |
|
|
}
|
54 |
|
|
}
|