in progress
[jalview.git] / forester / java / src / org / forester / ws / uniprot / UniProtEntry.java
index 5a5568a..d5056e6 100644 (file)
@@ -27,6 +27,8 @@ package org.forester.ws.uniprot;
 
 import java.util.List;
 
+import org.forester.util.ForesterUtil;
+
 public final class UniProtEntry implements SequenceDatabaseEntry {
 
     private String _ac;
@@ -130,4 +132,16 @@ public final class UniProtEntry implements SequenceDatabaseEntry {
             _symbol = symbol;
         }
     }
+
+    @Override
+    public boolean isEmpty() {
+        return ( ForesterUtil.isEmpty( getAccession() ) && ForesterUtil.isEmpty( getSequenceName() )
+                && ForesterUtil.isEmpty( getTaxonomyScientificName() )
+                && ForesterUtil.isEmpty( getTaxonomyIdentifier() ) && ForesterUtil.isEmpty( getSequenceSymbol() ) );
+    }
+
+    @Override
+    public String getProvider() {
+        return "uniprot";
+    }
 }