X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjalview%2Fdatamodel%2FDBRefEntry.js;fp=site%2Fj2s%2Fjalview%2Fdatamodel%2FDBRefEntry.js;h=148cf997c0acf4aa1f9a68e51985b003f91d1366;hp=da2e0cbec61f0a471852da95a74a12389e03dc35;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/j2s/jalview/datamodel/DBRefEntry.js b/site/j2s/jalview/datamodel/DBRefEntry.js index da2e0cb..148cf99 100644 --- a/site/j2s/jalview/datamodel/DBRefEntry.js +++ b/site/j2s/jalview/datamodel/DBRefEntry.js @@ -1,93 +1,93 @@ -Clazz.declarePackage ("jalview.datamodel"); -Clazz.load (null, "jalview.datamodel.DBRefEntry", ["jalview.datamodel.Mapping"], function () { -c$ = Clazz.decorateAsClass (function () { -this.source = ""; -this.version = ""; -this.accessionId = ""; -this.map = null; -Clazz.instantialize (this, arguments); -}, jalview.datamodel, "DBRefEntry"); -Clazz.makeConstructor (c$, -function () { -}); -Clazz.makeConstructor (c$, -function (source, version, accessionId) { -this.construct (source, version, accessionId, null); -}, "~S,~S,~S"); -Clazz.makeConstructor (c$, -function (source, version, accessionId, map) { -this.source = source.toUpperCase (); -this.version = version; -this.accessionId = accessionId; -this.map = map; -}, "~S,~S,~S,jalview.datamodel.Mapping"); -Clazz.makeConstructor (c$, -function (entry) { -this.construct ((entry.source == null ? "" : String.instantialize (entry.source)), (entry.version == null ? "" : String.instantialize (entry.version)), (entry.accessionId == null ? "" : String.instantialize (entry.accessionId)), (entry.map == null ? null : new jalview.datamodel.Mapping (entry.map))); -}, "jalview.datamodel.DBRefEntry"); -Clazz.overrideMethod (c$, "equals", -function (o) { -if (o == null || !(Clazz.instanceOf (o, jalview.datamodel.DBRefEntry))) { -return false; -}var entry = o; -if (entry === this) { -return true; -}if (this.equalRef (entry) && ((this.map == null && entry.map == null) || (this.map != null && entry.map != null && this.map.equals (entry.map)))) { -return true; -}return false; -}, "~O"); -Clazz.defineMethod (c$, "equalRef", -function (entry) { -if (entry == null) { -return false; -}if (entry === this) { -return true; -}if ((this.source != null && entry.source != null && this.source.equalsIgnoreCase (entry.source)) && (this.accessionId != null && entry.accessionId != null && this.accessionId.equalsIgnoreCase (entry.accessionId)) && (this.version != null && entry.version != null && this.version.equalsIgnoreCase (entry.version))) { -return true; -}return false; -}, "jalview.datamodel.DBRefEntry"); -Clazz.defineMethod (c$, "getSource", -function () { -return this.source; -}); -Clazz.defineMethod (c$, "getVersion", -function () { -return this.version; -}); -Clazz.defineMethod (c$, "getAccessionId", -function () { -return this.accessionId; -}); -Clazz.defineMethod (c$, "setAccessionId", -function (accessionId) { -this.accessionId = accessionId; -}, "~S"); -Clazz.defineMethod (c$, "setSource", -function (source) { -this.source = source; -}, "~S"); -Clazz.defineMethod (c$, "setVersion", -function (version) { -this.version = version; -}, "~S"); -Clazz.defineMethod (c$, "getMap", -function () { -return this.map; -}); -Clazz.defineMethod (c$, "setMap", -function (map) { -this.map = map; -}, "jalview.datamodel.Mapping"); -Clazz.defineMethod (c$, "hasMap", -function () { -return this.map != null; -}); -Clazz.defineMethod (c$, "getSrcAccString", -function () { -return ((this.source != null) ? this.source : "") + ":" + ((this.accessionId != null) ? this.accessionId : ""); -}); -Clazz.overrideMethod (c$, "toString", -function () { -return this.getSrcAccString (); -}); -}); +Clazz.declarePackage ("jalview.datamodel"); +Clazz.load (null, "jalview.datamodel.DBRefEntry", ["jalview.datamodel.Mapping"], function () { +c$ = Clazz.decorateAsClass (function () { +this.source = ""; +this.version = ""; +this.accessionId = ""; +this.map = null; +Clazz.instantialize (this, arguments); +}, jalview.datamodel, "DBRefEntry"); +Clazz.makeConstructor (c$, +function () { +}); +Clazz.makeConstructor (c$, +function (source, version, accessionId) { +this.construct (source, version, accessionId, null); +}, "~S,~S,~S"); +Clazz.makeConstructor (c$, +function (source, version, accessionId, map) { +this.source = source.toUpperCase (); +this.version = version; +this.accessionId = accessionId; +this.map = map; +}, "~S,~S,~S,jalview.datamodel.Mapping"); +Clazz.makeConstructor (c$, +function (entry) { +this.construct ((entry.source == null ? "" : String.instantialize (entry.source)), (entry.version == null ? "" : String.instantialize (entry.version)), (entry.accessionId == null ? "" : String.instantialize (entry.accessionId)), (entry.map == null ? null : new jalview.datamodel.Mapping (entry.map))); +}, "jalview.datamodel.DBRefEntry"); +Clazz.overrideMethod (c$, "equals", +function (o) { +if (o == null || !(Clazz.instanceOf (o, jalview.datamodel.DBRefEntry))) { +return false; +}var entry = o; +if (entry === this) { +return true; +}if (this.equalRef (entry) && ((this.map == null && entry.map == null) || (this.map != null && entry.map != null && this.map.equals (entry.map)))) { +return true; +}return false; +}, "~O"); +Clazz.defineMethod (c$, "equalRef", +function (entry) { +if (entry == null) { +return false; +}if (entry === this) { +return true; +}if ((this.source != null && entry.source != null && this.source.equalsIgnoreCase (entry.source)) && (this.accessionId != null && entry.accessionId != null && this.accessionId.equalsIgnoreCase (entry.accessionId)) && (this.version != null && entry.version != null && this.version.equalsIgnoreCase (entry.version))) { +return true; +}return false; +}, "jalview.datamodel.DBRefEntry"); +Clazz.defineMethod (c$, "getSource", +function () { +return this.source; +}); +Clazz.defineMethod (c$, "getVersion", +function () { +return this.version; +}); +Clazz.defineMethod (c$, "getAccessionId", +function () { +return this.accessionId; +}); +Clazz.defineMethod (c$, "setAccessionId", +function (accessionId) { +this.accessionId = accessionId; +}, "~S"); +Clazz.defineMethod (c$, "setSource", +function (source) { +this.source = source; +}, "~S"); +Clazz.defineMethod (c$, "setVersion", +function (version) { +this.version = version; +}, "~S"); +Clazz.defineMethod (c$, "getMap", +function () { +return this.map; +}); +Clazz.defineMethod (c$, "setMap", +function (map) { +this.map = map; +}, "jalview.datamodel.Mapping"); +Clazz.defineMethod (c$, "hasMap", +function () { +return this.map != null; +}); +Clazz.defineMethod (c$, "getSrcAccString", +function () { +return ((this.source != null) ? this.source : "") + ":" + ((this.accessionId != null) ? this.accessionId : ""); +}); +Clazz.overrideMethod (c$, "toString", +function () { +return this.getSrcAccString (); +}); +});