JAL-1831 added changes to allow auto-generation of BioJSON schema from src code
[jalview.git] / src / jalview / json / binding / biojson / v1 / AnnotationPojo.java
1 package jalview.json.binding.biojson.v1;
2
3 import com.github.reinert.jjschema.Attributes;
4
5 public class AnnotationPojo
6 {
7   @Attributes(required = false, description = "Display character for the given annotation")
8   private String displayCharacter;
9
10   @Attributes(required = false, description = "Description for the annotation")
11   private String description;
12
13   @Attributes(required = true, enums = {"E", "H", "\u0000", ")", "("}, 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>")
14   private char secondaryStructure;
15
16   @Attributes(required = false, description = "Value of the annotation")
17   private float value;
18
19
20   public String getDisplayCharacter()
21   {
22     return displayCharacter;
23   }
24
25   public void setDisplayCharacter(String displayCharacter)
26   {
27     this.displayCharacter = displayCharacter;
28   }
29
30   public String getDescription()
31   {
32     return description;
33   }
34
35   public void setDescription(String description)
36   {
37     this.description = description;
38   }
39
40   public char getSecondaryStructure()
41   {
42     return secondaryStructure;
43   }
44
45   public void setSecondaryStructure(char secondaryStructure)
46   {
47     this.secondaryStructure = secondaryStructure;
48   }
49
50   public float getValue()
51   {
52     return value;
53   }
54
55   public void setValue(float value)
56   {
57     this.value = value;
58   }
59
60 }