1 Clazz.declarePackage ("jalview.datamodel");
2 Clazz.load (null, "jalview.datamodel.SequenceFeature", ["java.util.Hashtable", "$.Vector"], function () {
3 c$ = Clazz.decorateAsClass (function () {
8 this.description = null;
9 this.otherDetails = null;
11 this.featureGroup = null;
12 Clazz.instantialize (this, arguments);
13 }, jalview.datamodel, "SequenceFeature");
14 Clazz.makeConstructor (c$,
17 Clazz.makeConstructor (c$,
20 this.begin = cpy.begin;
22 this.score = cpy.score;
23 if (cpy.type != null) {
24 this.type = String.instantialize (cpy.type);
25 }if (cpy.description != null) {
26 this.description = String.instantialize (cpy.description);
27 }if (cpy.featureGroup != null) {
28 this.featureGroup = String.instantialize (cpy.featureGroup);
29 }if (cpy.otherDetails != null) {
31 this.otherDetails = cpy.otherDetails.clone ();
33 if (Clazz.exceptionOf (e, Exception)) {
38 }if (cpy.links != null && cpy.links.size () > 0) {
39 this.links = new java.util.Vector ();
40 for (var i = 0, iSize = cpy.links.size (); i < iSize; i++) {
41 this.links.addElement (cpy.links.elementAt (i));
43 }}}, "jalview.datamodel.SequenceFeature");
44 Clazz.makeConstructor (c$,
45 function (type, desc, status, begin, end, featureGroup) {
47 this.description = desc;
48 this.setValue ("status", status);
51 this.featureGroup = featureGroup;
52 }, "~S,~S,~S,~N,~N,~S");
53 Clazz.makeConstructor (c$,
54 function (type, desc, begin, end, score, featureGroup) {
56 this.description = desc;
60 this.featureGroup = featureGroup;
61 }, "~S,~S,~N,~N,~N,~S");
62 Clazz.defineMethod (c$, "equals",
64 if (this.begin != sf.begin || this.end != sf.end || this.score != sf.score) {
66 }if (!(this.type + this.description + this.featureGroup).equals (sf.type + sf.description + sf.featureGroup)) {
69 }, "jalview.datamodel.SequenceFeature");
70 Clazz.defineMethod (c$, "getBegin",
74 Clazz.defineMethod (c$, "setBegin",
78 Clazz.defineMethod (c$, "getEnd",
82 Clazz.defineMethod (c$, "setEnd",
86 Clazz.defineMethod (c$, "getType",
90 Clazz.defineMethod (c$, "setType",
94 Clazz.defineMethod (c$, "getDescription",
96 return this.description;
98 Clazz.defineMethod (c$, "setDescription",
100 this.description = desc;
102 Clazz.defineMethod (c$, "getFeatureGroup",
104 return this.featureGroup;
106 Clazz.defineMethod (c$, "setFeatureGroup",
107 function (featureGroup) {
108 this.featureGroup = featureGroup;
110 Clazz.defineMethod (c$, "addLink",
111 function (labelLink) {
112 if (this.links == null) {
113 this.links = new java.util.Vector ();
114 }this.links.insertElementAt (labelLink, 0);
116 Clazz.defineMethod (c$, "getScore",
120 Clazz.defineMethod (c$, "setScore",
124 Clazz.defineMethod (c$, "getValue",
126 if (this.otherDetails == null) {
129 return this.otherDetails.get (key);
131 Clazz.defineMethod (c$, "setValue",
132 function (key, value) {
134 if (this.otherDetails == null) {
135 this.otherDetails = new java.util.Hashtable ();
136 }this.otherDetails.put (key, value);
138 Clazz.defineMethod (c$, "setStatus",
140 this.setValue ("status", status);
142 Clazz.defineMethod (c$, "getStatus",
144 if (this.otherDetails != null) {
145 var stat = this.otherDetails.get ("status");
147 return String.instantialize (stat);
150 Clazz.defineMethod (c$, "setPosition",
155 Clazz.defineMethod (c$, "getPosition",
159 Clazz.defineMethod (c$, "getStrand",
162 if (this.otherDetails == null || (str = this.otherDetails.get ("STRAND").toString ()) == null) {
164 }if (str.equals ("-")) {
166 }if (str.equals ("+")) {