Merge branch 'develop' into features/r2_11_2/JAL-3829_3dbeacons
[jalview.git] / src / jalview / datamodel / PDBEntry.java
index 1edc94b..672a59e 100755 (executable)
@@ -462,19 +462,25 @@ public class PDBEntry
   }
   
 
+  private static final String RETRIEVE_FROM="RETRIEVE_FROM";
   /**
    * Permanent URI for retrieving the original structure data
    * @param urlStr
    */
   public void setRetrievalUrl(String urlStr)
   {
-    setProperty("RETRIEVE_FROM", urlStr);
+    setProperty(RETRIEVE_FROM, urlStr);
   }
   /**
    * get the Permanent URI for retrieving the original structure data
    */
   public String getRetrievalUrl()
   {
-    return (String) getProperty("RETRIEVE_FROM");
+    return (String) getProperty(RETRIEVE_FROM);
+  }
+
+  public boolean hasRetrievalUrl()
+  {
+    return (properties!=null && properties.containsKey(RETRIEVE_FROM));
   }
 }