BGBM BDI Projects
/
cdmlib-apps.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#5448 Import rank "SAM"
[cdmlib-apps.git]
/
app-import
/
src
/
main
/
java
/
eu
/
etaxonomy
/
cdm
/
io
/
redlist
/
gefaesspflanzen
/
RedListGefaesspflanzenTransformer.java
diff --git
a/app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListGefaesspflanzenTransformer.java
b/app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListGefaesspflanzenTransformer.java
index 6024d4b6177dabf556c821f1d6fc5846caab6060..ce04fcea769de534123638b57dea90fa06d3bd74 100644
(file)
--- a/
app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListGefaesspflanzenTransformer.java
+++ b/
app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListGefaesspflanzenTransformer.java
@@
-10,6
+10,8
@@
package eu.etaxonomy.cdm.io.redlist.gefaesspflanzen;
package eu.etaxonomy.cdm.io.redlist.gefaesspflanzen;
+import java.util.UUID;
+
import org.apache.log4j.Logger;
import eu.etaxonomy.cdm.io.common.mapping.InputTransformerBase;
import org.apache.log4j.Logger;
import eu.etaxonomy.cdm.io.common.mapping.InputTransformerBase;
@@
-30,6
+32,13
@@
public final class RedListGefaesspflanzenTransformer extends InputTransformerBas
@SuppressWarnings("unused")
private static final Logger logger = Logger.getLogger(RedListGefaesspflanzenTransformer.class);
@SuppressWarnings("unused")
private static final Logger logger = Logger.getLogger(RedListGefaesspflanzenTransformer.class);
+ @Override
+ public UUID getRankUuid(String key) throws UndefinedTransformerMethodException {
+ if (key == null){return null;}
+ if (key.equals("SAM")){return RedListUtil.uuidRankCollectionSpecies;}
+ return null;
+ }
+
@Override
public Rank getRankByKey(String key) throws UndefinedTransformerMethodException {
if (key == null){return null;}
@Override
public Rank getRankByKey(String key) throws UndefinedTransformerMethodException {
if (key == null){return null;}