Project

General

Profile

« Previous | Next » 

Revision b2d15a1f

Added by Andreas Müller almost 10 years ago

replace deprecated

View differences:

cdm-eflora/src/main/java/eu/etaxonomy/cdm/io/eflora/EfloraTransformer.java
159 159
	 */
160 160
	@Override
161 161
	public Feature getFeatureByKey(String key) throws UndefinedTransformerMethodException {
162
		if (CdmUtils.isEmpty(key)){return null;
162
		if (CdmUtils.isBlank(key)){return null;
163 163
		}else if (key.equalsIgnoreCase("distribution")){return Feature.DISTRIBUTION();
164 164
		}else if (key.equalsIgnoreCase("habitatecology")){return Feature.ECOLOGY();
165 165
		}else{
......
172 172
	 */
173 173
	@Override
174 174
	public UUID getFeatureUuid(String key) 	throws UndefinedTransformerMethodException {
175
		if (CdmUtils.isEmpty(key)){return null;
175
		if (CdmUtils.isBlank(key)){return null;
176 176

  
177 177
		}else if (key.equalsIgnoreCase("Chromosomes")){return uuidChromosomes;
178 178

  
......
302 302
	 */
303 303
	@Override
304 304
	public MarkerType getMarkerTypeByKey(String key) throws UndefinedTransformerMethodException {
305
		if (CdmUtils.isEmpty(key)){return null;
305
		if (CdmUtils.isBlank(key)){return null;
306 306
//		}else if (key.equalsIgnoreCase("distribution")){return MarkerType.;
307 307
//		}else if (key.equalsIgnoreCase("habitatecology")){return Feature.ECOLOGY();
308 308
		}else{
......
312 312

  
313 313
	@Override
314 314
	public UUID getMarkerTypeUuid(String key) throws UndefinedTransformerMethodException {
315
		if (CdmUtils.isEmpty(key)){return null;
315
		if (CdmUtils.isBlank(key)){return null;
316 316
		}else if (key.equalsIgnoreCase("excluded")){return uuidExcludedTaxon;
317 317
		}else if (key.equalsIgnoreCase("EXCLUDED SPECIES, OF UNCERTAIN AFHNITIES PTELEOCARPA")){return uuidExcludedTaxon;
318 318
		}else if (key.equalsIgnoreCase("EXCLUDED GENUS, OF UNCERTAIN AFHNITIES PTELEOCARPA")){return uuidExcludedTaxon;

Also available in: Unified diff