Project

General

Profile

Download (1.16 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
 * @date Nov 30, 2015
20
 *
21
 */
22
public class AbcdTransformer extends InputTransformerBase{
23

    
24

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

    
43
}
(9-9/14)