Project

General

Profile

Download (1.39 KB) Statistics
| Branch: | Tag: | Revision:
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 8e7ddb43 Andreas Müller
public class CdmTextElementMapper extends CdmSingleAttributeXmlMapperBase {
24
	@SuppressWarnings("unused")
25 1e21a025 Andreas Müller
	private static final Logger logger = Logger.getLogger(CdmTextElementMapper.class);
26
	
27
	/**
28
	 * @param dbValue
29
	 * @param cdmValue
30
	 */
31
	public CdmTextElementMapper(String sourceElementString,Namespace sourceNamespace, String cdmAttributeString) {
32
		super(sourceElementString, cdmAttributeString);
33
		this.sourceNamespace = sourceNamespace;
34
	}
35
36
	/**
37
	 * @param dbValue
38
	 * @param cdmValue
39
	 */
40
	public CdmTextElementMapper(String dbAttributString, String cdmAttributeString) {
41
		super(dbAttributString, cdmAttributeString);
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
}