X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjson%2Fbinding%2Fbiojson%2Fv1%2FSequenceGrpPojo.java;h=2a4efe8ed6e48fa30f04c75b6ca042f57783ef35;hb=3587df3dbcbd892eedd41a42d9f4e02a8b1e96ce;hp=4bc6e3b4784241fe887ac7501cf082dd5778814c;hpb=8e2f91c6975f077f4313a516a46a5a42b6388b3a;p=jalview.git diff --git a/src/jalview/json/binding/biojson/v1/SequenceGrpPojo.java b/src/jalview/json/binding/biojson/v1/SequenceGrpPojo.java index 4bc6e3b..2a4efe8 100644 --- a/src/jalview/json/binding/biojson/v1/SequenceGrpPojo.java +++ b/src/jalview/json/binding/biojson/v1/SequenceGrpPojo.java @@ -1,3 +1,23 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ 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 java.util.ArrayList; @@ -6,40 +26,54 @@ import com.github.reinert.jjschema.Attributes; public class SequenceGrpPojo { - @Attributes(required = true, description = "Serial version identifier for the seqGroup object model") - private String svid = "1.0"; - - @Attributes(required = false, description = "The Colour Scheme applied to the Sequence Group") + @Attributes( + required = false, + description = "The Colour Scheme applied to the Sequence Group") private String colourScheme; - @Attributes(required = true, description = "The name assigned to the seqGroup") + @Attributes( + required = true, + description = "The name assigned to the seqGroup") private String groupName; - @Attributes(required = false, description = "Serial version identifier for the seqGroup object model") + @Attributes( + required = false, + description = "Serial version identifier for the seqGroup object model") private String description; - @Attributes(required = false, description = "Determines if the seqGroup border should be visible or not") + @Attributes( + required = false, + description = "Determines if the seqGroup border should be visible or not") private boolean displayBoxes; - @Attributes(required = false, description = "Determines if the texts of the group is displayed or not") + @Attributes( + required = false, + description = "Determines if the texts of the group is displayed or not") private boolean displayText; - @Attributes(required = false, description = "Determines if the residues text for the group is coloured") + @Attributes( + required = false, + description = "Determines if the residues text for the group is coloured") private boolean colourText; - @Attributes(required = false, description = "Boolean value indicating whether residues should only be shown
that are different from current reference or consensus sequence") + @Attributes( + required = false, + description = "Boolean value indicating whether residues should only be shown
that are different from current reference or consensus sequence") private boolean showNonconserved; - @Attributes(required = true, description = "The index of the group’s first residue in the alignment space") + @Attributes( + required = true, + description = "The index of the group’s first residue in the alignment space") private int startRes; - @Attributes(required = true, description = "The index of the group’s last residue in the alignment space") + @Attributes( + required = true, + description = "The index of the group’s last residue in the alignment space") private int endRes; - + @Attributes( required = true, minItems = 1, - maxItems = 2147483647, uniqueItems = true, description = "An array of the unique id's for the sequences belonging to the group") private ArrayList sequenceRefs = new ArrayList(); @@ -144,9 +178,4 @@ public class SequenceGrpPojo this.sequenceRefs = sequenceRefs; } - public String getSvid() - { - return svid; - } - }