Project

General

Profile

« Previous | Next » 

Revision 531fc7bc

Added by Andreas Müller almost 8 years ago

Remove generics from Reference in cdmlib (except for cdmlib-model) #5830

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/specimen/excel/in/SpecimenCdmExcelImportState.java
1 1
// $Id$
2 2
/**
3 3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy 
4
* European Distributed Institute of Taxonomy
5 5
* http://www.e-taxonomy.eu
6
* 
6
*
7 7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8 8
* See LICENSE.TXT at the top of this package for the full license terms.
9 9
*/
......
36 36

  
37 37
	private SpecimenRow specimenRow;
38 38
	private NamedAreaLevellRow namedAreaLevelRow;
39
	
40
	private Map<String, Reference<?>> references = new HashMap<String, Reference<?>>();
39

  
40
	private Map<String, Reference> references = new HashMap<String, Reference>();
41 41
	private Map<String, Collection> collections = new HashMap<String, Collection>();
42 42
	private Map<String, Person> persons = new HashMap<String, Person>();
43 43
	private Map<String, Team> teams = new HashMap<String, Team>();
44 44
	private Map<String, TaxonNameBase<?, ?>> names = new HashMap<String, TaxonNameBase<?,?>>();
45 45
	private Map<String, UUID> areas = new HashMap<String, UUID>();
46
	
47
	
46

  
47

  
48 48
	private Map<String, NamedAreaLevel> postfixLevels = new HashMap<String, NamedAreaLevel>();
49 49
	private Map<String, ExtensionType> postfixExtensionTypes = new HashMap<String, ExtensionType>();
50
	
51
	
52
	
50

  
51

  
52

  
53 53
	public SpecimenCdmExcelImportState(SpecimenCdmExcelImportConfigurator config) {
54 54
		super(config);
55 55
	}
56 56

  
57
	public Reference<?> getReference(String key) {
57
	public Reference getReference(String key) {
58 58
		return references.get(key);
59 59
	}
60
	
61
	public Reference<?> putReference(String key, Reference<?> value){
60

  
61
	public Reference putReference(String key, Reference value){
62 62
		return this.references.put(key, value);
63 63
	}
64 64

  
65 65
	public Collection getCollection(String key) {
66 66
		return collections.get(key);
67 67
	}
68
	
68

  
69 69
	public Collection putCollection(String key, Collection value){
70 70
		return this.collections.put(key, value);
71 71
	}
72
	
72

  
73 73
	public Person getPerson(String key) {
74 74
		return persons.get(key);
75 75
	}
76
	
76

  
77 77
	public Person putPerson(String key, Person value){
78 78
		return this.persons.put(key, value);
79 79
	}
......
81 81
	public Team getTeam(String key) {
82 82
		return teams.get(key);
83 83
	}
84
	
84

  
85 85
	public Team putTeam(String key, Team value){
86 86
		return this.teams.put(key, value);
87 87
	}
......
89 89
	public TaxonNameBase getName(String key) {
90 90
		return names.get(key);
91 91
	}
92
	
92

  
93 93
	public TaxonNameBase putName(String key, TaxonNameBase value){
94 94
		return this.names.put(key, value);
95 95
	}
......
105 105
	public NamedAreaLevel getPostfixLevel(String postfix){
106 106
		return this.postfixLevels.get(postfix);
107 107
	}
108
	
108

  
109 109
	public NamedAreaLevel putPostfixLevel(String postfix, NamedAreaLevel level) {
110 110
		return this.postfixLevels.put(postfix, level);
111
		
111

  
112 112
	}
113
	
113

  
114 114
	public ExtensionType getPostfixExtensionType(String postfix){
115 115
		return this.postfixExtensionTypes.get(postfix);
116 116
	}
117
	
117

  
118 118
	public ExtensionType putPostfixExtensionType(String postfix, ExtensionType type) {
119 119
		return this.postfixExtensionTypes.put(postfix, type);
120
		
120

  
121 121
	}
122 122

  
123 123
	public UUID putArea(String key, UUID areaUuid) {
......
127 127
	public UUID getArea(String key) {
128 128
		return areas.get(key);
129 129
	}
130
	
130

  
131 131

  
132 132

  
133 133
}

Also available in: Unified diff