1 Clazz.declarePackage ("jalview.datamodel");
2 Clazz.load (null, "jalview.datamodel.DBRefEntry", ["jalview.datamodel.Mapping"], function () {
3 c$ = Clazz.decorateAsClass (function () {
8 Clazz.instantialize (this, arguments);
9 }, jalview.datamodel, "DBRefEntry");
10 Clazz.makeConstructor (c$,
13 Clazz.makeConstructor (c$,
14 function (source, version, accessionId) {
15 this.construct (source, version, accessionId, null);
17 Clazz.makeConstructor (c$,
18 function (source, version, accessionId, map) {
19 this.source = source.toUpperCase ();
20 this.version = version;
21 this.accessionId = accessionId;
23 }, "~S,~S,~S,jalview.datamodel.Mapping");
24 Clazz.makeConstructor (c$,
26 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)));
27 }, "jalview.datamodel.DBRefEntry");
28 Clazz.overrideMethod (c$, "equals",
30 if (o == null || !(Clazz.instanceOf (o, jalview.datamodel.DBRefEntry))) {
35 }if (this.equalRef (entry) && ((this.map == null && entry.map == null) || (this.map != null && entry.map != null && this.map.equals (entry.map)))) {
39 Clazz.defineMethod (c$, "equalRef",
43 }if (entry === this) {
45 }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))) {
48 }, "jalview.datamodel.DBRefEntry");
49 Clazz.defineMethod (c$, "getSource",
53 Clazz.defineMethod (c$, "getVersion",
57 Clazz.defineMethod (c$, "getAccessionId",
59 return this.accessionId;
61 Clazz.defineMethod (c$, "setAccessionId",
62 function (accessionId) {
63 this.accessionId = accessionId;
65 Clazz.defineMethod (c$, "setSource",
69 Clazz.defineMethod (c$, "setVersion",
71 this.version = version;
73 Clazz.defineMethod (c$, "getMap",
77 Clazz.defineMethod (c$, "setMap",
80 }, "jalview.datamodel.Mapping");
81 Clazz.defineMethod (c$, "hasMap",
83 return this.map != null;
85 Clazz.defineMethod (c$, "getSrcAccString",
87 return ((this.source != null) ? this.source : "") + ":" + ((this.accessionId != null) ? this.accessionId : "");
89 Clazz.overrideMethod (c$, "toString",
91 return this.getSrcAccString ();