X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjson%2Fbinding%2Fbiojson%2Fv1%2FSequencePojo.java;fp=src%2Fjalview%2Fjson%2Fbinding%2Fbiojson%2Fv1%2FSequencePojo.java;h=9d39d42d18ee38c40b546f9f3b5a8084ca3c7a10;hb=f06554784411ddbf871d642e66c8dcb7f147d4a8;hp=0000000000000000000000000000000000000000;hpb=cf06ee5d732af6cc874115aece1138adafca8ad7;p=jalview.git diff --git a/src/jalview/json/binding/biojson/v1/SequencePojo.java b/src/jalview/json/binding/biojson/v1/SequencePojo.java new file mode 100644 index 0000000..9d39d42 --- /dev/null +++ b/src/jalview/json/binding/biojson/v1/SequencePojo.java @@ -0,0 +1,117 @@ +package jalview.json.binding.biojson.v1; + +import com.github.reinert.jjschema.Attributes; + + + +public class SequencePojo +{ + @Attributes( + required = true, + minLength = 3, + maxLength = 2147483647, + description = "Sequence residue characters. An aligned sequence may contain
one of the following gap characters “.”, “-” or “ ”") + private String seq; + + @Attributes(required = true, description = "Sequence name") + private String name; + + @Attributes(required = false, description = "Sequence type", enums = {"DNA", "RNA", "Protein"}) + private String type; + + @Attributes(required = true, description = "Unique identifier for a given Sequence") + private String id; + + @Attributes(required = false, description = "The order/position of a sequence in the alignment space") + private int order; + + @Attributes(required = true, description = "The index of the sequence’s first residue in its source database,
using a one-based numbering index system") + private int start; + + @Attributes(required = true, description = "The index of the sequence’s last residue in its source database,
using a one-based numbering index system") + private int end; + + + public SequencePojo() + { + } + + public SequencePojo(int start, int end, String id, String name, String seq) + { + this.id = id; + this.name = name; + this.seq = seq; + } + public String getSeq() + { + return seq; + } + + public void setSeq(String seq) + { + this.seq = seq; + } + + public String getName() + { + + return name; + } + + public void setName(String name) + { + this.name = name; + } + + public String getId() + { + return id; + } + + public void setId(String id) + { + this.id = id; + } + + public int getStart() + { + return start; + } + + public void setStart(int start) + { + this.start = start; + } + + public int getEnd() + { + return end; + } + + public void setEnd(int end) + { + this.end = end; + } + + public int getOrder() + { + return order; + } + + public void setOrder(int order) + { + this.order = order; + } + + + public String getType() + { + return type; + } + + public void setType(String type) + { + this.type = type; + } + +}