JAL-1831 added changes to allow auto-generation of BioJSON schema from src code
[jalview.git] / src / jalview / json / binding / biojson / v1 / SequencePojo.java
@@ -1,23 +1,33 @@
-package jalview.json.binding.v1;
+package jalview.json.binding.biojson.v1;
+
+import com.github.reinert.jjschema.Attributes;
 
 
 
 public class SequencePojo
 {
+  @Attributes(required = true, description = "Serial version identifier for the <b>seqs</b> object model")
   private String svid = "1.0";
 
+  @Attributes(required = true,minLength=3,maxLength=1999999999, description = "Sequence residue characters. An aligned sequence may contain <br>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, <br>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, <br>using a one-based numbering index system")
   private int end;