git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'improvement/JAL-4250_secondary_structure_annotation_antialias' into...
[jalview.git]
/
src
/
jalview
/
datamodel
/
PDBEntry.java
diff --git
a/src/jalview/datamodel/PDBEntry.java
b/src/jalview/datamodel/PDBEntry.java
index
65ba18b
..
ae8523d
100755
(executable)
--- a/
src/jalview/datamodel/PDBEntry.java
+++ b/
src/jalview/datamodel/PDBEntry.java
@@
-20,12
+20,13
@@
*/
package jalview.datamodel;
*/
package jalview.datamodel;
-import jalview.util.CaseInsensitiveString;
-
import java.util.Collections;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Collections;
import java.util.Enumeration;
import java.util.Hashtable;
+import jalview.io.StructureFile;
+import jalview.util.CaseInsensitiveString;
+
public class PDBEntry
{
public class PDBEntry
{
@@
-56,6
+57,8
@@
public class PDBEntry
private String id;
private String id;
+ private StructureFile sf = null;
+
public enum Type
{
// TODO is FILE needed; if not is this enum needed, or can we
public enum Type
{
// TODO is FILE needed; if not is this enum needed, or can we
@@
-626,4
+629,19
@@
public class PDBEntry
{
return _hasProperty(PROVIDER);
}
{
return _hasProperty(PROVIDER);
}
+
+ public StructureFile getStructureFile()
+ {
+ return sf;
+ }
+
+ public void setStructureFile(StructureFile f)
+ {
+ sf = f;
+ }
+
+ public boolean hasStructureFile()
+ {
+ return sf != null && sf.inFile != null && sf.inFile.exists();
+ }
}
}