JAL-1831 added changes to allow auto-generation of BioJSON schema from src code
[jalview.git] / src / jalview / json / binding / biojson / v1 / AlignmentAnnotationPojo.java
1 package jalview.json.binding.biojson.v1;
2
3 import java.util.ArrayList;
4 import java.util.List;
5
6 import com.github.reinert.jjschema.Attributes;
7
8 public class AlignmentAnnotationPojo
9 {
10   @Attributes(required = true, description = "Serial version id for the alignAnnotation object model")
11   private String svid = "1.0";
12
13   @Attributes(required = false, description = "Label for the Alignment Annotation")
14   private String label;
15
16   @Attributes(required = false, description = "Description for the Alignment Annotation")
17   private String description;
18
19   @Attributes(required = false)
20   private List<AnnotationPojo> annotations = new ArrayList<AnnotationPojo>();
21
22   public String getLabel()
23   {
24     return label;
25   }
26
27   public void setLabel(String label)
28   {
29     this.label = label;
30   }
31
32   public String getDescription()
33   {
34     return description;
35   }
36
37   public void setDescription(String annotationId)
38   {
39     this.description = annotationId;
40   }
41
42   public List<AnnotationPojo> getAnnotations()
43   {
44     return annotations;
45   }
46
47   public void setAnnotations(List<AnnotationPojo> annotations)
48   {
49     this.annotations = annotations;
50   }
51
52   public String getSvid()
53   {
54     return svid;
55   }
56
57 }