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.logging.log4j.LogManager;import org.apache.logging.log4j.Logger;
|
13
|
|
14
|
import com.hp.hpl.jena.rdf.model.Resource;
|
15
|
import com.hp.hpl.jena.rdf.model.Statement;
|
16
|
|
17
|
/**
|
18
|
* @author a.mueller
|
19
|
* @since 29.07.2008
|
20
|
*/
|
21
|
|
22
|
public class CdmTextElementMapper extends CdmSingleAttributeRDFMapperBase {
|
23
|
@SuppressWarnings("unused")
|
24
|
private static final Logger logger = LogManager.getLogger(CdmTextElementMapper.class);
|
25
|
|
26
|
/**
|
27
|
* @param dbValue
|
28
|
* @param cdmValue
|
29
|
*/
|
30
|
public CdmTextElementMapper(String sourceElementString, String 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
|
@Override
|
44
|
public String getSourceNamespace(){
|
45
|
return sourceNameSpace;
|
46
|
}
|
47
|
|
48
|
@Override
|
49
|
public Class getTypeClass(){
|
50
|
return String.class;
|
51
|
}
|
52
|
|
53
|
@Override
|
54
|
public boolean mapsSource(Resource content, Statement parentElement){
|
55
|
return super.mapsSource(content, parentElement);
|
56
|
}
|
57
|
|
58
|
|
59
|
|
60
|
|
61
|
|
62
|
|
63
|
}
|