X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Fjalview%2Fdatamodel%2FPDBEntry.java;h=1c7df49083385be633d7aa9e1c20a4e1300fed32;hb=65d6d09cd08743d481d39521bb0298ea683888f8;hp=36ffdf389d324cda26e19d0e1108cd3bc293ec95;hpb=b8f13fd9ac44853d6510eac85edb60b117dc4620;p=jalview.git diff --git a/src/jalview/datamodel/PDBEntry.java b/src/jalview/datamodel/PDBEntry.java index 36ffdf3..1c7df49 100755 --- a/src/jalview/datamodel/PDBEntry.java +++ b/src/jalview/datamodel/PDBEntry.java @@ -34,8 +34,9 @@ public class PDBEntry public enum Type { - PDB, FILE + PDB, MMCIF, FILE } + Hashtable properties; /* @@ -55,12 +56,8 @@ public class PDBEntry return true; } PDBEntry o = (PDBEntry) obj; - return /* - * (file == o.file || (file != null && o.file != null && o.file - * .equals(file))) && - */ - (type == o.type || (type != null && o.type != null && o.type - .equals(type))) + return (type == o.type || (type != null && o.type != null && o.type + .equals(type))) && (id == o.id || (id != null && o.id != null && o.id .equalsIgnoreCase(id))) && (chainCode == o.chainCode || (chainCode != null @@ -69,6 +66,7 @@ public class PDBEntry && (properties == o.properties || (properties != null && o.properties != null && properties .equals(o.properties))); + } /** @@ -88,7 +86,7 @@ public class PDBEntry // this.file = filePath; // this.id = pdbId; // } - + public PDBEntry(String pdbId, String chain, PDBEntry.Type type, String filePath) { @@ -129,6 +127,7 @@ public class PDBEntry { this.type = t; } + public void setType(PDBEntry.Type type) { this.type = type == null ? null : type.toString(); @@ -169,4 +168,9 @@ public class PDBEntry this.chainCode = chainCode; } + @Override + public String toString() + { + return id; + } }