Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / jalview / datamodel / UniprotSequence.js
1 Clazz.declarePackage ("jalview.datamodel");
2 Clazz.load (null, "jalview.datamodel.UniprotSequence", ["java.lang.StringBuilder"], function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this._content = "";
5 Clazz.instantialize (this, arguments);
6 }, jalview.datamodel, "UniprotSequence");
7 Clazz.defineMethod (c$, "setContent", 
8 function (seq) {
9 if (seq != null) {
10 var sb =  new StringBuilder (seq.length);
11 for (var i = 0; i < seq.length; i++) {
12 if (seq.charAt (i) != ' ') {
13 sb.append (seq.charAt (i));
14 }}
15 this._content = sb.toString ();
16 }}, "~S");
17 Clazz.defineMethod (c$, "getContent", 
18 function () {
19 return this._content;
20 });
21 });