merge from develop
[jalview.git] / 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 <a href=\"colour_schemes.html\">Colour Scheme</a> 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 <b>seqGroup</b> 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 <br/>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<String> seqsHash = new ArrayList<String>();
+  
+  @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<String> sequenceRefs = new ArrayList<String>();
 
   public String getColourScheme()
   {
@@ -116,19 +133,15 @@ public class SequenceGrpPojo
     this.endRes = endRes;
   }
 
-  public ArrayList<String> getSeqsHash()
+  public ArrayList<String> getSequenceRefs()
   {
-    return seqsHash;
+    return sequenceRefs;
   }
 
-  public void setSeqsHash(ArrayList<String> seqsHash)
+  public void setSequenceRefs(ArrayList<String> sequenceRefs)
   {
-    this.seqsHash = seqsHash;
+    this.sequenceRefs = sequenceRefs;
   }
 
-  public String getSvid()
-  {
-    return svid;
-  }
 
 }