Project

General

Profile

Download (1.35 KB) Statistics
| Branch: | Tag: | Revision:
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
 * @author a.mueller
19
 * @created 29.07.2008
20
 * @version 1.0
21
 */
22

    
23
public class CdmTextElementMapper extends CdmIoXmlMapperBase {
24
	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
}
(2-2/11)