JAL-1645 Version-Rel Version 2.9 Year-Rel 2015 Licensing glob
[jalview.git] / src / jalview / json / binding / biojson / v1 / SequenceFeaturesPojo.java
index e493ecb..318eeac 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9)
+ * Copyright (C) 2015 The Jalview Authors
+ * 
+ * This file is part of Jalview.
+ * 
+ * Jalview is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License 
+ * as published by the Free Software Foundation, either version 3
+ * of the License, or (at your option) any later version.
+ *  
+ * Jalview is distributed in the hope that it will be useful, but 
+ * WITHOUT ANY WARRANTY; without even the implied warranty 
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
+ * PURPOSE.  See the GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
+ * The Jalview Authors are detailed in the 'AUTHORS' file.
+ */
 package jalview.json.binding.biojson.v1;
 
 import java.util.Map;
@@ -7,19 +27,26 @@ import com.github.reinert.jjschema.Attributes;
 
 public class SequenceFeaturesPojo
 {
-  @Attributes(required = true, description = "Serial version id for the <b>SeqFeature</b> object")
-  private String svid = "1.0";
-
-  @Attributes(required = true, description = "Start residue position for the sequence feature")
+  @Attributes(
+    required = true,
+    description = "Start residue position for the sequence feature")
   private int xStart;
 
-  @Attributes(required = true, description = "End residue position for the sequence feature")
+  @Attributes(
+    required = true,
+    description = "End residue position for the sequence feature")
   private int xEnd;
 
-  @Attributes(required = true, minItems = 1, maxItems = 1999999999, description = "Reference to the sequence in the alignment<br> (more like a foreign key)")
+  @Attributes(
+    required = true,
+    minItems = 1,
+    maxItems = 2147483647,
+    description = "Reference to the sequence in the alignment<br> (more like a foreign key)")
   private String sequenceRef;
 
-  @Attributes(required = true, description = "The name or type of the SequenceFeature")
+  @Attributes(
+    required = true,
+    description = "The name or type of the SequenceFeature")
   private String type;
 
   @Attributes(required = false, description = "Score")
@@ -27,8 +54,10 @@ public class SequenceFeaturesPojo
 
   @Attributes(required = false, description = "Description for the feature")
   private String description;
-  
-  @Attributes(required = false, description = "Additional metadata for the feature")
+
+  @Attributes(
+    required = false,
+    description = "Additional metadata for the feature")
   private Map<String, Object> otherDetails;
 
   @Attributes(required = false, description = "Fill colour")
@@ -37,7 +66,9 @@ public class SequenceFeaturesPojo
   @Attributes(required = true, description = "Feature group")
   private String featureGroup;
 
-  @Attributes(required = false, description = "URL links associated to the feature")
+  @Attributes(
+    required = false,
+    description = "URL links associated to the feature")
   private Vector<String> links;
 
   public SequenceFeaturesPojo()
@@ -149,17 +180,4 @@ public class SequenceFeaturesPojo
     this.sequenceRef = sequenceRef;
   }
 
-  public String getSvid()
-  {
-    return svid;
-  }
-
-//public Map<String, Object> getOtherDetails() {
-//     return otherDetails;
-//}
-//
-//public void setOtherDetails(Map<String, Object> otherDetails) {
-//     this.otherDetails = otherDetails;
-//}
-
 }