X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=bin%2Fjalview%2Fdatamodel%2FPDBEntry.js;h=e153399e29c3393c98f7fb3b051327889288a065;hp=e52f785b3dc736de91589b3994fabf74dfc7319f;hb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6;hpb=6154cb57a6eac3bb1344b8342495f5bb701ee921 diff --git a/bin/jalview/datamodel/PDBEntry.js b/bin/jalview/datamodel/PDBEntry.js index e52f785..e153399 100644 --- a/bin/jalview/datamodel/PDBEntry.js +++ b/bin/jalview/datamodel/PDBEntry.js @@ -1,88 +1,88 @@ -Clazz.declarePackage ("jalview.datamodel"); -Clazz.load (["java.lang.Enum"], "jalview.datamodel.PDBEntry", null, function () { -c$ = Clazz.decorateAsClass (function () { -this.file = null; -this.type = null; -this.id = null; -this.chainCode = null; -this.properties = null; -Clazz.instantialize (this, arguments); -}, jalview.datamodel, "PDBEntry"); -Clazz.overrideMethod (c$, "equals", -function (obj) { -if (obj == null || !(Clazz.instanceOf (obj, jalview.datamodel.PDBEntry))) { -return false; -}if (obj === this) { -return true; -}var o = obj; -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))); -}, "~O"); -Clazz.makeConstructor (c$, -function () { -}); -Clazz.makeConstructor (c$, -function (pdbId, chain, type, filePath) { -this.id = pdbId; -this.chainCode = chain; -this.type = type == null ? null : type.toString (); -this.file = filePath; -}, "~S,~S,jalview.datamodel.PDBEntry.Type,~S"); -Clazz.makeConstructor (c$, -function (entry) { -this.file = entry.file; -this.type = entry.type; -this.id = entry.id; -this.chainCode = entry.chainCode; -if (entry.properties != null) { -this.properties = entry.properties.clone (); -}}, "jalview.datamodel.PDBEntry"); -Clazz.defineMethod (c$, "setFile", -function (file) { -this.file = file; -}, "~S"); -Clazz.defineMethod (c$, "getFile", -function () { -return this.file; -}); -Clazz.defineMethod (c$, "setType", -function (t) { -this.type = t; -}, "~S"); -Clazz.defineMethod (c$, "setType", -function (type) { -this.type = type == null ? null : type.toString (); -}, "jalview.datamodel.PDBEntry.Type"); -Clazz.defineMethod (c$, "getType", -function () { -return this.type; -}); -Clazz.defineMethod (c$, "setId", -function (id) { -this.id = id; -}, "~S"); -Clazz.defineMethod (c$, "getId", -function () { -return this.id; -}); -Clazz.defineMethod (c$, "setProperty", -function (property) { -this.properties = property; -}, "java.util.Hashtable"); -Clazz.defineMethod (c$, "getProperty", -function () { -return this.properties; -}); -Clazz.defineMethod (c$, "getChainCode", -function () { -return this.chainCode; -}); -Clazz.defineMethod (c$, "setChainCode", -function (chainCode) { -this.chainCode = chainCode; -}, "~S"); -Clazz.pu$h (); -c$ = Clazz.declareType (jalview.datamodel.PDBEntry, "Type", Enum); -Clazz.defineEnumConstant (c$, "PDB", 0, []); -Clazz.defineEnumConstant (c$, "FILE", 1, []); -c$ = Clazz.p0p (); -}); +Clazz.declarePackage ("jalview.datamodel"); +Clazz.load (["java.lang.Enum"], "jalview.datamodel.PDBEntry", null, function () { +c$ = Clazz.decorateAsClass (function () { +this.file = null; +this.type = null; +this.id = null; +this.chainCode = null; +this.properties = null; +Clazz.instantialize (this, arguments); +}, jalview.datamodel, "PDBEntry"); +Clazz.overrideMethod (c$, "equals", +function (obj) { +if (obj == null || !(Clazz.instanceOf (obj, jalview.datamodel.PDBEntry))) { +return false; +}if (obj === this) { +return true; +}var o = obj; +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))); +}, "~O"); +Clazz.makeConstructor (c$, +function () { +}); +Clazz.makeConstructor (c$, +function (pdbId, chain, type, filePath) { +this.id = pdbId; +this.chainCode = chain; +this.type = type == null ? null : type.toString (); +this.file = filePath; +}, "~S,~S,jalview.datamodel.PDBEntry.Type,~S"); +Clazz.makeConstructor (c$, +function (entry) { +this.file = entry.file; +this.type = entry.type; +this.id = entry.id; +this.chainCode = entry.chainCode; +if (entry.properties != null) { +this.properties = entry.properties.clone (); +}}, "jalview.datamodel.PDBEntry"); +Clazz.defineMethod (c$, "setFile", +function (file) { +this.file = file; +}, "~S"); +Clazz.defineMethod (c$, "getFile", +function () { +return this.file; +}); +Clazz.defineMethod (c$, "setType", +function (t) { +this.type = t; +}, "~S"); +Clazz.defineMethod (c$, "setType", +function (type) { +this.type = type == null ? null : type.toString (); +}, "jalview.datamodel.PDBEntry.Type"); +Clazz.defineMethod (c$, "getType", +function () { +return this.type; +}); +Clazz.defineMethod (c$, "setId", +function (id) { +this.id = id; +}, "~S"); +Clazz.defineMethod (c$, "getId", +function () { +return this.id; +}); +Clazz.defineMethod (c$, "setProperty", +function (property) { +this.properties = property; +}, "java.util.Hashtable"); +Clazz.defineMethod (c$, "getProperty", +function () { +return this.properties; +}); +Clazz.defineMethod (c$, "getChainCode", +function () { +return this.chainCode; +}); +Clazz.defineMethod (c$, "setChainCode", +function (chainCode) { +this.chainCode = chainCode; +}, "~S"); +Clazz.pu$h (); +c$ = Clazz.declareType (jalview.datamodel.PDBEntry, "Type", Enum); +Clazz.defineEnumConstant (c$, "PDB", 0, []); +Clazz.defineEnumConstant (c$, "FILE", 1, []); +c$ = Clazz.p0p (); +});