X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjson%2Fbinding%2Fbiojson%2Fv1%2FSequencePojo.java;h=bc1d1180e9f3121d692448bce5abe66560a7b592;hb=838e4f91d4a53dd315640dbc9ff6ef7a815ee576;hp=9d39d42d18ee38c40b546f9f3b5a8084ca3c7a10;hpb=2d11774110564c33e2e1460beab078095af22a29;p=jalview.git
diff --git a/src/jalview/json/binding/biojson/v1/SequencePojo.java b/src/jalview/json/binding/biojson/v1/SequencePojo.java
index 9d39d42..bc1d118 100644
--- a/src/jalview/json/binding/biojson/v1/SequencePojo.java
+++ b/src/jalview/json/binding/biojson/v1/SequencePojo.java
@@ -1,37 +1,63 @@
+/*
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b1)
+ * 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 .
+ * The Jalview Authors are detailed in the 'AUTHORS' file.
+ */
package jalview.json.binding.biojson.v1;
import com.github.reinert.jjschema.Attributes;
-
-
public class SequencePojo
{
@Attributes(
required = true,
minLength = 3,
maxLength = 2147483647,
- description = "Sequence residue characters. An aligned sequence may contain
one of the following gap characters â.â, â-â or â â")
+ description = "Sequence residue characters. An aligned sequence may contain
one of the following gap characters “.”, “-” or “ ”")
private String seq;
@Attributes(required = true, description = "Sequence name")
private String name;
- @Attributes(required = false, description = "Sequence type", enums = {"DNA", "RNA", "Protein"})
+ @Attributes(required = false, description = "Sequence type", enums = {
+ "DNA", "RNA", "Protein" })
private String type;
- @Attributes(required = true, description = "Unique identifier for a given Sequence")
+ @Attributes(
+ required = true,
+ description = "Unique identifier for a given Sequence")
private String id;
-
- @Attributes(required = false, description = "The order/position of a sequence in the alignment space")
+
+ @Attributes(
+ required = false,
+ description = "The order/position of a sequence in the alignment space")
private int order;
-
- @Attributes(required = true, description = "The index of the sequenceâs first residue in its source database,
using a one-based numbering index system")
+
+ @Attributes(
+ required = true,
+ description = "The index of the sequenceâs first residue in its source database,
using a one-based numbering index system")
private int start;
- @Attributes(required = true, description = "The index of the sequenceâs last residue in its source database,
using a one-based numbering index system")
+ @Attributes(
+ required = true,
+ description = "The index of the sequenceâs last residue in its source database,
using a one-based numbering index system")
private int end;
-
public SequencePojo()
{
}
@@ -42,6 +68,7 @@ public class SequencePojo
this.name = name;
this.seq = seq;
}
+
public String getSeq()
{
return seq;
@@ -103,7 +130,6 @@ public class SequencePojo
this.order = order;
}
-
public String getType()
{
return type;