1 package jalview.json.binding.biojson.v1;
4 import java.util.Vector;
6 import com.github.reinert.jjschema.Attributes;
8 public class SequenceFeaturesPojo
10 @Attributes(required = true, description = "Serial version id for the <b>SeqFeature</b> object")
11 private String svid = "1.0";
13 @Attributes(required = true, description = "Start residue position for the sequence feature")
16 @Attributes(required = true, description = "End residue position for the sequence feature")
22 maxItems = 2147483647,
23 description = "Reference to the sequence in the alignment<br> (more like a foreign key)")
24 private String sequenceRef;
26 @Attributes(required = true, description = "The name or type of the SequenceFeature")
29 @Attributes(required = false, description = "Score")
32 @Attributes(required = false, description = "Description for the feature")
33 private String description;
35 @Attributes(required = false, description = "Additional metadata for the feature")
36 private Map<String, Object> otherDetails;
38 @Attributes(required = false, description = "Fill colour")
39 private String fillColor;
41 @Attributes(required = true, description = "Feature group")
42 private String featureGroup;
44 @Attributes(required = false, description = "URL links associated to the feature")
45 private Vector<String> links;
47 public SequenceFeaturesPojo()
51 public SequenceFeaturesPojo(String sequenceRef)
53 this.sequenceRef = sequenceRef;
56 public String getFillColor()
58 return "#" + fillColor;
61 public void setFillColor(String fillColor)
63 this.fillColor = fillColor;
66 public int getXstart()
71 public void setXstart(int xStart)
81 public void setXend(int xend)
86 public String getType()
91 public void setType(String type)
96 public Float getScore()
101 public void setScore(Float score)
106 public String getDescription()
111 public void setDescription(String description)
113 this.description = description;
116 public Map<String, Object> getOtherDetails()
121 public void setOtherDetails(Map<String, Object> otherDetails)
123 this.otherDetails = otherDetails;
126 public Vector<String> getLinks()
131 public void setLinks(Vector<String> links)
136 public String getFeatureGroup()
141 public void setFeatureGroup(String featureGroup)
143 this.featureGroup = featureGroup;
146 public String getSequenceRef()
151 public void setSequenceRef(String sequenceRef)
153 this.sequenceRef = sequenceRef;
156 public String getSvid()
161 //public Map<String, Object> getOtherDetails() {
162 // return otherDetails;
165 //public void setOtherDetails(Map<String, Object> otherDetails) {
166 // this.otherDetails = otherDetails;