Revision 8422c0cd
Added by Andreas Müller almost 8 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/edaphobase/EdaphobaseReferenceImport.java | ||
---|---|---|
145 | 145 |
Integer documentType = nullSafeInt(rs, "document_type"); |
146 | 146 |
//normalized_title, normalized_abk_official_remark |
147 | 147 |
|
148 |
Reference<?> ref = makeReferenceType(documentType, dtype);
|
|
148 |
Reference ref = makeReferenceType(documentType, dtype); |
|
149 | 149 |
ref.setTitle(title); |
150 | 150 |
ref.setPlacePublished(place); |
151 | 151 |
ref.setIssn(issn); |
... | ... | |
184 | 184 |
* @param documentType |
185 | 185 |
* @return |
186 | 186 |
*/ |
187 |
private Reference<?> makeReferenceType(Integer documentType, String dtype) {
|
|
187 |
private Reference makeReferenceType(Integer documentType, String dtype) { |
|
188 | 188 |
if (documentType == 11914){ |
189 | 189 |
return ReferenceFactory.newArticle(); |
190 | 190 |
} else if (documentType == 11916){ |
... | ... | |
196 | 196 |
} else if (documentType == 11917){ |
197 | 197 |
return ReferenceFactory.newBookSection(); |
198 | 198 |
} else if (documentType == 11912 || documentType == 11919 || documentType == 11924 ){ |
199 |
Reference<?> ref = ReferenceFactory.newGeneric();
|
|
199 |
Reference ref = ReferenceFactory.newGeneric(); |
|
200 | 200 |
return ref; |
201 | 201 |
} else { |
202 | 202 |
throw new RuntimeException("DocumentType not yet supported: " + documentType + ", " + dtype); |
Also available in: Unified diff
Remove generics from Reference in cdmlib-app #5830