Clover icon

Coverage Report

  1. Project Clover database Mon Nov 18 2024 09:38:20 GMT
  2. Package jalview.json.binding.biojson.v1

File AnnotationPojo.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart9.png
7% of files have more coverage

Code metrics

0
10
10
1
102
65
10
1
1
10
1

Classes

Class Line # Actions
AnnotationPojo 25 10 10
0.990%
 

Contributing tests

This file is covered by 1 test. .

Source view

1    /*
2    * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3    * Copyright (C) $$Year-Rel$$ The Jalview Authors
4    *
5    * This file is part of Jalview.
6    *
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.
11    *
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.
16    *
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.
20    */
21    package jalview.json.binding.biojson.v1;
22   
23    import com.github.reinert.jjschema.Attributes;
24   
 
25    public class AnnotationPojo
26    {
27    @Attributes(
28    required = false,
29    description = "Display character for the given annotation")
30    private String displayCharacter;
31   
32    @Attributes(
33    required = false,
34    description = "Description for the annotation")
35    private String description;
36   
37    @Attributes(
38    required = true,
39    enums =
40    { "E", "H", "\u0000", ")", "(" },
41    description = "Determines what is rendered for the secondary </br>structure <ul><li>’E’ - indicates Beta Sheet/Strand <li>’H’ - indicates alpha helix </li><li> ‘\\u0000’ - indicates blank</li></ul></br>For RNA Helix (only shown when working with</br> nucleotide sequences): <ul><li> ‘(’ - indicates bases pair with columns upstream</br> (to right) </li><li> ’(’ - indicate region pairs with bases to the left</li></ul>")
42    private char secondaryStructure;
43   
44    @Attributes(required = false, description = "Value of the annotation")
45    private float value;
46   
47    @Attributes(
48    required = false,
49    description = "Colour of the annotation position in hex string.")
50    private String colour;
51   
 
52  70 toggle public String getDisplayCharacter()
53    {
54  70 return displayCharacter;
55    }
56   
 
57  70 toggle public void setDisplayCharacter(String displayCharacter)
58    {
59  70 this.displayCharacter = displayCharacter;
60    }
61   
 
62  70 toggle public String getDescription()
63    {
64  70 return description;
65    }
66   
 
67  70 toggle public void setDescription(String description)
68    {
69  70 this.description = description;
70    }
71   
 
72  70 toggle public char getSecondaryStructure()
73    {
74  70 return secondaryStructure;
75    }
76   
 
77  70 toggle public void setSecondaryStructure(char secondaryStructure)
78    {
79  70 this.secondaryStructure = secondaryStructure;
80    }
81   
 
82  70 toggle public float getValue()
83    {
84  70 return value;
85    }
86   
 
87  70 toggle public void setValue(float value)
88    {
89  70 this.value = value;
90    }
91   
 
92  70 toggle public String getColour()
93    {
94  70 return colour;
95    }
96   
 
97  0 toggle public void setColour(String colour)
98    {
99  0 this.colour = colour;
100    }
101   
102    }