Project

General

Profile

Download (1.18 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2015 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.specimen.abcd206.in;
10

    
11
import org.apache.commons.lang.StringUtils;
12

    
13
import eu.etaxonomy.cdm.io.common.mapping.InputTransformerBase;
14
import eu.etaxonomy.cdm.io.common.mapping.UndefinedTransformerMethodException;
15
import eu.etaxonomy.cdm.model.location.ReferenceSystem;
16

    
17
/**
18
 * @author pplitzner
19
 * @since Nov 30, 2015
20
 */
21
public class AbcdTransformer extends InputTransformerBase{
22

    
23
    private static final long serialVersionUID = 5946317528955718151L;
24

    
25
    @Override
26
    public ReferenceSystem getReferenceSystemByKey(String key) throws UndefinedTransformerMethodException {
27
        if (StringUtils.isBlank(key)){
28
            return null;
29
        }else{
30
            ReferenceSystem result = null;
31
            try {
32
                result = super.getReferenceSystemByKey(key);
33
            } catch (UndefinedTransformerMethodException e) {
34
                //do nothing
35
            }
36
            return result;
37
        }
38
    }
39
}
(10-10/15)