1
2
3
4 package sk.stuba.fiit.foo07.genex.beans;
5
6
7
8
9
10 public class Answer {
11
12 private String text;
13 private Boolean isCorrect;
14 private Integer answerID;
15 private Integer questionID;
16
17 public Answer() {
18
19 }
20
21 public Answer(String text, Boolean isCorrect, Integer answerID,
22 Integer questionID) {
23 super();
24 this.text = text;
25 this.isCorrect = isCorrect;
26 this.answerID = answerID;
27 this.questionID = questionID;
28 }
29
30
31
32
33 public String getText() {
34 return text;
35 }
36
37
38
39
40
41 public void setText(String text) {
42 this.text = text;
43 }
44
45
46
47
48 public Boolean getIsCorrect() {
49 return isCorrect;
50 }
51
52
53
54
55
56 public void setIsCorrect(Boolean isCorrect) {
57 this.isCorrect = isCorrect;
58 }
59
60
61
62
63 public Integer getAnswerID() {
64 return answerID;
65 }
66
67
68
69
70
71 public void setAnswerID(Integer answerID) {
72 this.answerID = answerID;
73 }
74
75
76
77
78 public Integer getQuestionID() {
79 return questionID;
80 }
81
82
83
84
85
86 public void setQuestionID(Integer questionID) {
87 this.questionID = questionID;
88 }
89
90
91
92
93 @Override
94 public String toString() {
95 return this.text;
96 }
97
98 }