Project

General

Profile

« Previous | Next » 

Revision bac828e0

Added by Patrick Plitzner almost 8 years ago

Import concept relations E, W, K, AW, AO, R, O, S #5448

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListGefaesspflanzenTransformer.java
16 16
import eu.etaxonomy.cdm.io.common.mapping.UndefinedTransformerMethodException;
17 17
import eu.etaxonomy.cdm.model.name.NomenclaturalStatusType;
18 18
import eu.etaxonomy.cdm.model.name.Rank;
19
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType;
19 20

  
20 21
/**
21 22
 *
......
68 69
        return null;
69 70
    }
70 71

  
72
    public TaxonRelationshipType getTaxonRelationshipTypeByKey(String key) {
73
        if (key == null){return null;}
74
        else {
75
            String substring = key.substring(key.length()-1, key.length());
76
            //        if (key.equals("<")){return TaxonRelationshipType.();}//TODO: what to do here?
77
            if (substring.equals(">")){return TaxonRelationshipType.INCLUDES();}
78
            else if (substring.equals("!")){return TaxonRelationshipType.OVERLAPS();}
79
            else if (substring.equals("?")){return TaxonRelationshipType.ALL_RELATIONSHIPS();}
80
            //        else if (key.equals("x")){return TaxonRelationshipType.();}//TODO: what to do here?
81
        }
82
        return null;
83
    }
84

  
71 85
}

Also available in: Unified diff