X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjson%2Fbinding%2Fbiojson%2Fv1%2FSequenceGrpPojo.java;fp=src%2Fjalview%2Fjson%2Fbinding%2Fv1%2FSequenceGrpPojo.java;h=7c2a8fd91123c0896f876071005c9bb09cee6d9d;hb=f06554784411ddbf871d642e66c8dcb7f147d4a8;hp=f19f8ba1024047ec5781e1ec1a187ba9f4c681db;hpb=cf06ee5d732af6cc874115aece1138adafca8ad7;p=jalview.git diff --git a/src/jalview/json/binding/v1/SequenceGrpPojo.java b/src/jalview/json/binding/biojson/v1/SequenceGrpPojo.java similarity index 52% rename from src/jalview/json/binding/v1/SequenceGrpPojo.java rename to src/jalview/json/binding/biojson/v1/SequenceGrpPojo.java index f19f8ba..7c2a8fd 100644 --- a/src/jalview/json/binding/v1/SequenceGrpPojo.java +++ b/src/jalview/json/binding/biojson/v1/SequenceGrpPojo.java @@ -1,30 +1,47 @@ -package jalview.json.binding.v1; +package jalview.json.binding.biojson.v1; import java.util.ArrayList; +import com.github.reinert.jjschema.Attributes; + public class SequenceGrpPojo { - private String svid = "1.0"; - + @Attributes( + required = false, + description = "The Colour Scheme applied to the Sequence Group") private String colourScheme; + @Attributes(required = true, description = "The name assigned to the seqGroup") private String groupName; + @Attributes(required = false, description = "Serial version identifier for the seqGroup object model") private String description; + @Attributes(required = false, description = "Determines if the seqGroup border should be visible or not") private boolean displayBoxes; + @Attributes(required = false, description = "Determines if the texts of the group is displayed or not") private boolean displayText; + @Attributes(required = false, description = "Determines if the residues text for the group is coloured") private boolean colourText; + @Attributes(required = false, description = "Boolean value indicating whether residues should only be shown
that are different from current reference or consensus sequence") private boolean showNonconserved; + @Attributes(required = true, description = "The index of the group’s first residue in the alignment space") private int startRes; + @Attributes(required = true, description = "The index of the group’s last residue in the alignment space") private int endRes; - - private ArrayList seqsHash = new ArrayList(); + + @Attributes( + required = true, + minItems = 1, + maxItems = 2147483647, + uniqueItems = true, + description = "An array of the unique id's for the sequences belonging to the group") + private ArrayList sequenceRefs = new ArrayList(); public String getColourScheme() { @@ -116,19 +133,15 @@ public class SequenceGrpPojo this.endRes = endRes; } - public ArrayList getSeqsHash() + public ArrayList getSequenceRefs() { - return seqsHash; + return sequenceRefs; } - public void setSeqsHash(ArrayList seqsHash) + public void setSequenceRefs(ArrayList sequenceRefs) { - this.seqsHash = seqsHash; + this.sequenceRefs = sequenceRefs; } - public String getSvid() - { - return svid; - } }