Revision 4ed5c440
Added by Patrick Plitzner almost 8 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/bfnXml/in/BfnXmlTransformer.java | ||
---|---|---|
26 | 26 |
@SuppressWarnings("unused") |
27 | 27 |
private static final Logger logger = Logger.getLogger(BfnXmlTransformer.class); |
28 | 28 |
|
29 |
|
|
29 | 30 |
private static final BiMap<Rank, String> rankMap = HashBiMap.create(); |
30 | 31 |
static { |
31 | 32 |
rankMap.put(Rank.INFRAGENUS(), BfnXmlConstants.RNK_INFRAGEN); |
... | ... | |
92 | 93 |
return rankMap; |
93 | 94 |
} |
94 | 95 |
|
96 |
private static final BiMap<TaxonRelationshipType, String> relationshipTypeMap = HashBiMap.create(); |
|
97 |
static { |
|
98 |
relationshipTypeMap.put(TaxonRelationshipType.CONGRUENT_TO(), "!="); |
|
99 |
relationshipTypeMap.put(TaxonRelationshipType.CONGRUENT_OR_INCLUDES(), "!=,>"); |
|
100 |
relationshipTypeMap.put(TaxonRelationshipType.CONGRUENT_OR_INCLUDED_OR_INCLUDES(), "!=,<"); |
|
101 |
relationshipTypeMap.put(TaxonRelationshipType.INCLUDES(), ">"); |
|
102 |
relationshipTypeMap.put(TaxonRelationshipType.INCLUDES_OR_OVERLAPS(), ">,><"); |
|
103 |
relationshipTypeMap.put(TaxonRelationshipType.INCLUDED_OR_INCLUDES_OR_OVERLAPS(), ">,><");//TODO: should be Included In Or Overlaps |
|
104 |
relationshipTypeMap.put(TaxonRelationshipType.OVERLAPS(), "><"); |
|
105 |
relationshipTypeMap.put(TaxonRelationshipType.CONGRUENT_OR_INCLUDES_OR_OVERLAPS(), "~");//TODO Included in not here |
|
106 |
relationshipTypeMap.put(TaxonRelationshipType.ALL_RELATIONSHIPS(), "?"); |
|
107 |
relationshipTypeMap.put(TaxonRelationshipType.EXCLUDES(), "/="); |
|
108 |
relationshipTypeMap.put(TaxonRelationshipType.CONGRUENT_TO(), "!="); |
|
109 |
} |
|
110 |
|
|
111 |
public static BiMap<TaxonRelationshipType, String> getRelationshipTypeMap() { |
|
112 |
return relationshipTypeMap; |
|
113 |
} |
|
114 |
|
|
95 | 115 |
|
96 | 116 |
public static TaxonRelationshipType concept2TaxonRelation(String conceptStatus) throws UnknownCdmTypeException{ |
97 | 117 |
if(conceptStatus == null) { |
Also available in: Unified diff
Export concept relationships