JAL-1831 added changes to allow auto-generation of BioJSON schema from src code
[jalview.git] / src / jalview / json / binding / biojson / v1 / SequenceGrpPojo.java
1 package jalview.json.binding.biojson.v1;
2
3 import java.util.ArrayList;
4
5 import com.github.reinert.jjschema.Attributes;
6
7 public class SequenceGrpPojo
8 {
9   @Attributes(required = true, description = "Serial version identifier for the <b>seqGroup</b> object model")
10   private String svid = "1.0";
11   
12   @Attributes(required = false, description = "The Colour Scheme applied to the Sequence Group")
13   private String colourScheme;
14
15   @Attributes(required = true, description = "The name assigned to the seqGroup")
16   private String groupName;
17
18   @Attributes(required = false, description = "Serial version identifier for the <b>seqGroup</b> object model")
19   private String description;
20
21   @Attributes(required = false, description = "Determines if the seqGroup border should be visible or not")
22   private boolean displayBoxes;
23
24   @Attributes(required = false, description = "Determines if the texts of the group is displayed or not")
25   private boolean displayText;
26
27   @Attributes(required = false, description = "Determines if the residues text for the group is coloured")
28   private boolean colourText;
29
30   @Attributes(required = false, description = "Boolean value indicating whether residues should only be shown <br/>that are different from current reference or consensus sequence")
31   private boolean showNonconserved;
32
33   @Attributes(required = true, description = "The index of the group’s first residue in the alignment space")
34   private int startRes;
35
36   @Attributes(required = true, description = "The index of the group’s last residue in the alignment space")
37   private int endRes;
38   
39   @Attributes(required = true, minItems = 1, maxItems = 1999999999, uniqueItems=true, description = "An array of the unique id's for the sequences belonging to the group")  
40   private ArrayList<String> sequenceRefs = new ArrayList<String>();
41
42   public String getColourScheme()
43   {
44     return colourScheme;
45   }
46
47   public void setColourScheme(String colourScheme)
48   {
49     this.colourScheme = colourScheme;
50   }
51
52   public String getGroupName()
53   {
54     return groupName;
55   }
56
57   public void setGroupName(String groupName)
58   {
59     this.groupName = groupName;
60   }
61
62   public String getDescription()
63   {
64     return description;
65   }
66
67   public void setDescription(String description)
68   {
69     this.description = description;
70   }
71
72   public boolean isDisplayBoxes()
73   {
74     return displayBoxes;
75   }
76
77   public void setDisplayBoxes(boolean displayBoxes)
78   {
79     this.displayBoxes = displayBoxes;
80   }
81
82   public boolean isDisplayText()
83   {
84     return displayText;
85   }
86
87   public void setDisplayText(boolean displayText)
88   {
89     this.displayText = displayText;
90   }
91
92   public boolean isColourText()
93   {
94     return colourText;
95   }
96
97   public void setColourText(boolean colourText)
98   {
99     this.colourText = colourText;
100   }
101
102   public boolean isShowNonconserved()
103   {
104     return showNonconserved;
105   }
106
107   public void setShowNonconserved(boolean showNonconserved)
108   {
109     this.showNonconserved = showNonconserved;
110   }
111
112   public int getStartRes()
113   {
114     return startRes;
115   }
116
117   public void setStartRes(int startRes)
118   {
119     this.startRes = startRes;
120   }
121
122   public int getEndRes()
123   {
124     return endRes;
125   }
126
127   public void setEndRes(int endRes)
128   {
129     this.endRes = endRes;
130   }
131
132   public ArrayList<String> getSequenceRefs()
133   {
134     return sequenceRefs;
135   }
136
137   public void setSequenceRefs(ArrayList<String> sequenceRefs)
138   {
139     this.sequenceRefs = sequenceRefs;
140   }
141
142   public String getSvid()
143   {
144     return svid;
145   }
146
147 }