Project

General

Profile

« Previous | Next » 

Revision 379eb203

Added by Andreas Müller over 3 years ago

cleanup

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/mapping/berlinModel/CdmOneToManyMapper.java
1 1
/**
2 2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
3
* European Distributed Institute of Taxonomy
4 4
* http://www.e-taxonomy.eu
5
* 
5
*
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
......
42 42
		this.oneClass = oneClass;
43 43
		this.singleAttributeName = singleAttributeName;
44 44
	}
45
	
45

  
46 46
//	@Override
47 47
//	public Set<String> getSourceAttributes(){
48
//		Set<String> result = new HashSet<String>();
48
//		Set<String> result = new HashSet<>();
49 49
//		result.addAll(getSourceAttributeList());
50 50
//		return result;
51 51
//	}
52
	
52

  
53 53
	@Override
54 54
	public List<String> getSourceAttributeList(){
55 55
		List<String> result = new ArrayList<String>();
......
58 58
		}
59 59
		return result;
60 60
	}
61
	
61

  
62 62
//	@Override
63 63
//	public Set<String> getDestinationAttributes(){
64
//		Set<String> result = new HashSet<String>();
64
//		Set<String> result = new HashSet<>();
65 65
//		result.addAll(getDestinationAttributeList());
66 66
//		return result;
67 67
//	}
68
	
68

  
69 69
	@Override
70 70
	public List<String> getDestinationAttributeList(){
71 71
		List<String> result = new ArrayList<String>();
......
75 75
		return result;
76 76
	}
77 77

  
78
	
78

  
79 79
	public Class<MANY> getManyClass(){
80 80
		return manyClass;
81 81
	}
82
	
82

  
83 83
	public Class<ONE> getOneClass(){
84 84
		return oneClass;
85 85
	}
86
	
86

  
87 87
	public String getDestinationAttribute(String sourceAttribute){
88 88
		if (sourceAttribute == null){
89 89
			return null;
......
95 95
		}
96 96
		return null;
97 97
	}
98
	
98

  
99 99
	public List<SINGLE_MAPPER> getSingleMappers(){
100 100
		return singleMappers;
101 101
	}
......
106 106
	public String getSingleAttributeName() {
107 107
		return singleAttributeName;
108 108
	}
109
	
109

  
110 110
}

Also available in: Unified diff