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 = "Start residue position for the sequence feature")
13 @Attributes(required = true, description = "End residue position for the sequence feature")
19 maxItems = 2147483647,
20 description = "Reference to the sequence in the alignment<br> (more like a foreign key)")
21 private String sequenceRef;
23 @Attributes(required = true, description = "The name or type of the SequenceFeature")
26 @Attributes(required = false, description = "Score")
29 @Attributes(required = false, description = "Description for the feature")
30 private String description;
32 @Attributes(required = false, description = "Additional metadata for the feature")
33 private Map<String, Object> otherDetails;
35 @Attributes(required = false, description = "Fill colour")
36 private String fillColor;
38 @Attributes(required = true, description = "Feature group")
39 private String featureGroup;
41 @Attributes(required = false, description = "URL links associated to the feature")
42 private Vector<String> links;
44 public SequenceFeaturesPojo()
48 public SequenceFeaturesPojo(String sequenceRef)
50 this.sequenceRef = sequenceRef;
53 public String getFillColor()
55 return "#" + fillColor;
58 public void setFillColor(String fillColor)
60 this.fillColor = fillColor;
63 public int getXstart()
68 public void setXstart(int xStart)
78 public void setXend(int xend)
83 public String getType()
88 public void setType(String type)
93 public Float getScore()
98 public void setScore(Float score)
103 public String getDescription()
108 public void setDescription(String description)
110 this.description = description;
113 public Map<String, Object> getOtherDetails()
118 public void setOtherDetails(Map<String, Object> otherDetails)
120 this.otherDetails = otherDetails;
123 public Vector<String> getLinks()
128 public void setLinks(Vector<String> links)
133 public String getFeatureGroup()
138 public void setFeatureGroup(String featureGroup)
140 this.featureGroup = featureGroup;
143 public String getSequenceRef()
148 public void setSequenceRef(String sequenceRef)
150 this.sequenceRef = sequenceRef;