1 Clazz.declarePackage ("jalview.datamodel");
2 Clazz.load (["java.lang.Enum"], "jalview.datamodel.PDBEntry", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
8 this.properties = null;
9 Clazz.instantialize (this, arguments);
10 }, jalview.datamodel, "PDBEntry");
11 Clazz.overrideMethod (c$, "equals",
13 if (obj == null || !(Clazz.instanceOf (obj, jalview.datamodel.PDBEntry))) {
18 return (this.type === o.type || (this.type != null && o.type != null && o.type.equals (this.type))) && (this.id === o.id || (this.id != null && o.id != null && o.id.equalsIgnoreCase (this.id))) && (this.chainCode === o.chainCode || (this.chainCode != null && o.chainCode != null && o.chainCode.equalsIgnoreCase (this.chainCode))) && (this.properties === o.properties || (this.properties != null && o.properties != null && this.properties.equals (o.properties)));
20 Clazz.makeConstructor (c$,
23 Clazz.makeConstructor (c$,
24 function (pdbId, chain, type, filePath) {
26 this.chainCode = chain;
27 this.type = type == null ? null : type.toString ();
29 }, "~S,~S,jalview.datamodel.PDBEntry.Type,~S");
30 Clazz.makeConstructor (c$,
32 this.file = entry.file;
33 this.type = entry.type;
35 this.chainCode = entry.chainCode;
36 if (entry.properties != null) {
37 this.properties = entry.properties.clone ();
38 }}, "jalview.datamodel.PDBEntry");
39 Clazz.defineMethod (c$, "setFile",
43 Clazz.defineMethod (c$, "getFile",
47 Clazz.defineMethod (c$, "setType",
51 Clazz.defineMethod (c$, "setType",
53 this.type = type == null ? null : type.toString ();
54 }, "jalview.datamodel.PDBEntry.Type");
55 Clazz.defineMethod (c$, "getType",
59 Clazz.defineMethod (c$, "setId",
63 Clazz.defineMethod (c$, "getId",
67 Clazz.defineMethod (c$, "setProperty",
69 this.properties = property;
70 }, "java.util.Hashtable");
71 Clazz.defineMethod (c$, "getProperty",
73 return this.properties;
75 Clazz.defineMethod (c$, "getChainCode",
77 return this.chainCode;
79 Clazz.defineMethod (c$, "setChainCode",
80 function (chainCode) {
81 this.chainCode = chainCode;
84 c$ = Clazz.declareType (jalview.datamodel.PDBEntry, "Type", Enum);
85 Clazz.defineEnumConstant (c$, "PDB", 0, []);
86 Clazz.defineEnumConstant (c$, "FILE", 1, []);