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")
19 @Attributes(required = true, minItems = 1, maxItems = 1999999999, description = "Reference to the sequence in the alignment<br> (more like a foreign key)")
20 private String sequenceRef;
22 @Attributes(required = true, description = "The name or type of the SequenceFeature")
25 @Attributes(required = false, description = "Score")
28 @Attributes(required = false, description = "Description for the feature")
29 private String description;
31 @Attributes(required = false, description = "Additional metadata for the feature")
32 private Map<String, Object> otherDetails;
34 @Attributes(required = false, description = "Fill colour")
35 private String fillColor;
37 @Attributes(required = true, description = "Feature group")
38 private String featureGroup;
40 @Attributes(required = false, description = "URL links associated to the feature")
41 private Vector<String> links;
43 public SequenceFeaturesPojo()
47 public SequenceFeaturesPojo(String sequenceRef)
49 this.sequenceRef = sequenceRef;
52 public String getFillColor()
54 return "#" + fillColor;
57 public void setFillColor(String fillColor)
59 this.fillColor = fillColor;
62 public int getXstart()
67 public void setXstart(int xStart)
77 public void setXend(int xend)
82 public String getType()
87 public void setType(String type)
92 public Float getScore()
97 public void setScore(Float score)
102 public String getDescription()
107 public void setDescription(String description)
109 this.description = description;
112 public Map<String, Object> getOtherDetails()
117 public void setOtherDetails(Map<String, Object> otherDetails)
119 this.otherDetails = otherDetails;
122 public Vector<String> getLinks()
127 public void setLinks(Vector<String> links)
132 public String getFeatureGroup()
137 public void setFeatureGroup(String featureGroup)
139 this.featureGroup = featureGroup;
142 public String getSequenceRef()
147 public void setSequenceRef(String sequenceRef)
149 this.sequenceRef = sequenceRef;
152 public String getSvid()
157 //public Map<String, Object> getOtherDetails() {
158 // return otherDetails;
161 //public void setOtherDetails(Map<String, Object> otherDetails) {
162 // this.otherDetails = otherDetails;