JAL-1739 added svid - serial version id to hold version info for all the json objects
[jalview.git] / src / jalview / json / binding / v1 / SequenceFeaturesPojo.java
1 package jalview.json.binding.v1;
2
3 import java.util.Hashtable;
4 import java.util.Vector;
5
6 public class SequenceFeaturesPojo
7 {
8   private String svid = "1.0";
9
10   private int xstart;
11
12   private int xend;
13
14   private String sequenceRef;
15
16   private String type;
17
18   private Float score;
19
20   private String description;
21
22   private Hashtable otherDetails;
23
24   private String fillColor;
25
26   private String featureGroup;
27
28   private Vector<String> links;
29
30   public SequenceFeaturesPojo()
31   {
32   }
33
34   public SequenceFeaturesPojo(String sequenceRef)
35   {
36     this.sequenceRef = sequenceRef;
37   }
38
39   public String getFillColor()
40   {
41     return "#" + fillColor;
42   }
43
44   public void setFillColor(String fillColor)
45   {
46     this.fillColor = fillColor;
47   }
48
49   public int getXstart()
50   {
51     return xstart;
52   }
53
54   public void setXstart(int xstart)
55   {
56     this.xstart = xstart;
57   }
58
59   public int getXend()
60   {
61     return xend;
62   }
63
64   public void setXend(int xend)
65   {
66     this.xend = xend;
67   }
68
69   public String getType()
70   {
71     return type;
72   }
73
74   public void setType(String type)
75   {
76     this.type = type;
77   }
78
79   public Float getScore()
80   {
81     return score;
82   }
83
84   public void setScore(Float score)
85   {
86     this.score = score;
87   }
88
89   public String getDescription()
90   {
91     return description;
92   }
93
94   public void setDescription(String description)
95   {
96     this.description = description;
97   }
98
99   public Hashtable getOtherDetails()
100   {
101     return otherDetails;
102   }
103
104   public void setOtherDetails(Hashtable otherDetails)
105   {
106     this.otherDetails = otherDetails;
107   }
108
109   public Vector<String> getLinks()
110   {
111     return links;
112   }
113
114   public void setLinks(Vector<String> links)
115   {
116     this.links = links;
117   }
118
119   public String getFeatureGroup()
120   {
121     return featureGroup;
122   }
123
124   public void setFeatureGroup(String featureGroup)
125   {
126     this.featureGroup = featureGroup;
127   }
128
129   public String getSequenceRef()
130   {
131     return sequenceRef;
132   }
133
134   public void setSequenceRef(String sequenceRef)
135   {
136     this.sequenceRef = sequenceRef;
137   }
138
139   public String getSvid()
140   {
141     return svid;
142   }
143
144 }