JAL-1824 updated caching procedure for pdb entries. Also refactored getPDBEntry metho...
[jalview.git] / src / jalview / datamodel / SequenceI.java
index f69c8b6..2ff619b 100755 (executable)
@@ -274,7 +274,7 @@ public interface SequenceI extends ASequenceI
    * 
    * @return DOCUMENT ME!
    */
-  public Vector<PDBEntry> getPDBId();
+  public Vector<PDBEntry> getAllPDBEntries();
 
   /**
    * add entry to the vector of PDBIds, if it isn't in the list already
@@ -420,4 +420,12 @@ public interface SequenceI extends ASequenceI
    */
   public List<int[]> getInsertions();
 
+  /**
+   * Given a pdbId String, return the equivalent PDBEntry if available in the
+   * given sequence
+   * 
+   * @param pdbId
+   * @return
+   */
+  public PDBEntry getPDBEntry(String pdbId);
 }