2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
21 package jalview.json.binding.biojson.v1;
24 import java.util.Vector;
26 import com.github.reinert.jjschema.Attributes;
28 public class SequenceFeaturesPojo
32 description = "Start residue position for the sequence feature")
37 description = "End residue position for the sequence feature")
43 maxItems = 2147483647,
44 description = "Reference to the sequence in the alignment<br> (more like a foreign key)")
45 private String sequenceRef;
49 description = "The name or type of the SequenceFeature")
52 @Attributes(required = false, description = "Score")
55 @Attributes(required = false, description = "Description for the feature")
56 private String description;
60 description = "Additional metadata for the feature")
61 private Map<String, Object> otherDetails;
63 @Attributes(required = false, description = "Fill colour")
64 private String fillColor;
66 @Attributes(required = true, description = "Feature group")
67 private String featureGroup;
71 description = "URL links associated to the feature")
72 private Vector<String> links;
74 public SequenceFeaturesPojo()
78 public SequenceFeaturesPojo(String sequenceRef)
80 this.sequenceRef = sequenceRef;
83 public String getFillColor()
85 return "#" + fillColor;
88 public void setFillColor(String fillColor)
90 this.fillColor = fillColor;
93 public int getXstart()
98 public void setXstart(int xStart)
100 this.xStart = xStart;
108 public void setXend(int xend)
113 public String getType()
118 public void setType(String type)
123 public Float getScore()
128 public void setScore(Float score)
133 public String getDescription()
138 public void setDescription(String description)
140 this.description = description;
143 public Map<String, Object> getOtherDetails()
148 public void setOtherDetails(Map<String, Object> otherDetails)
150 this.otherDetails = otherDetails;
153 public Vector<String> getLinks()
158 public void setLinks(Vector<String> links)
163 public String getFeatureGroup()
168 public void setFeatureGroup(String featureGroup)
170 this.featureGroup = featureGroup;
173 public String getSequenceRef()
178 public void setSequenceRef(String sequenceRef)
180 this.sequenceRef = sequenceRef;