1 package at.rseiler.spbee.core.pojo;
2
3 import java.io.Serializable;
4 import java.util.ArrayList;
5 import java.util.List;
6
7
8
9
10
11
12 public class AnnotationInfo implements Serializable {
13
14 private static final long serialVersionUID = 573649572871493759L;
15
16 private final String annotationType;
17 private final List<AnnotationValueInfo> annotationValueInfos = new ArrayList<>();
18
19
20
21
22
23
24 public AnnotationInfo(String annotationType) {
25 this.annotationType = annotationType;
26 }
27
28
29
30
31
32
33
34 public AnnotationInfo addAnnotationValueInfo(AnnotationValueInfo annotationValueInfo) {
35 annotationValueInfos.add(annotationValueInfo);
36 return this;
37 }
38
39
40
41
42
43
44 public String getAnnotationType() {
45 return annotationType;
46 }
47
48
49
50
51
52
53 public List<AnnotationValueInfo> getAnnotationValueInfos() {
54 return annotationValueInfos;
55 }
56
57 @Override
58 public String toString() {
59 return "AnnotationInfo{" +
60 "annotationType='" + annotationType + '\'' +
61 ", annotationValueInfos=" + annotationValueInfos +
62 '}';
63 }
64
65 }