Merge branch 'develop' into features/r2_11_2/JAL-3829_3dbeacons
[jalview.git] / src / jalview / datamodel / PDBEntry.java
index c1dc77c..672a59e 100755 (executable)
@@ -460,4 +460,27 @@ public class PDBEntry
     }
     return true;
   }
+  
+
+  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);
+  }
+  /**
+   * get the Permanent URI for retrieving the original structure data
+   */
+  public String getRetrievalUrl()
+  {
+    return (String) getProperty(RETRIEVE_FROM);
+  }
+
+  public boolean hasRetrievalUrl()
+  {
+    return (properties!=null && properties.containsKey(RETRIEVE_FROM));
+  }
 }