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
package eu.etaxonomy.cdm.io.stream.mapping;
10

    
11

    
12
/**
13
 * @author a.mueller
14
 * @since 19.03.2012
15
 *
16
 */
17
public class MappingEntry<SOURCE_NS extends Object, SOURCE_KEY extends Object, 
18
			DEST_NS extends Object, DEST_KEY extends Object> {
19
	
20
	SOURCE_NS namespace;
21
	SOURCE_KEY sourceKey;
22
	DEST_NS destinationNamespace;
23
	DEST_KEY destinationId;
24
	
25
	public MappingEntry(SOURCE_NS namespace, SOURCE_KEY sourceKey,
26
			DEST_NS destinationNamespace, DEST_KEY destinationKey) {
27
		super();
28
		this.namespace = namespace;
29
		this.sourceKey = sourceKey;
30
		this.destinationNamespace = destinationNamespace;
31
		this.destinationId = destinationKey;
32
	}
33
	
34
	public DEST_NS getDestinationNamespace() {
35
		return destinationNamespace;
36
	}
37

    
38

    
39
	public DEST_KEY getDestinationId() {
40
		return destinationId;
41
	}
42
	
43
	public SOURCE_NS getNamespace() {
44
		return namespace;
45
	}
46

    
47
	public SOURCE_KEY getSourceKey() {
48
		return sourceKey;
49
	}
50

    
51
	@Override
52
	public String toString(){
53
		return "[" + String.valueOf(namespace) + "." + String.valueOf(sourceKey) + "->" +  
54
					String.valueOf(destinationNamespace) + "." + String.valueOf(destinationId) + "]";
55
	}
56
		
57
	
58
}
(4-4/4)