View Javadoc

1   /**
2    * 
3    */
4   package sk.stuba.fiit.foo07.genex.beans;
5   
6   /**
7    * @author Martin
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       * @return the text
32       */
33      public String getText() {
34          return text;
35      }
36  
37      /**
38       * @param text
39       *                the text to set
40       */
41      public void setText(String text) {
42          this.text = text;
43      }
44  
45      /**
46       * @return the isCorrect
47       */
48      public Boolean getIsCorrect() {
49          return isCorrect;
50      }
51  
52      /**
53       * @param isCorrect
54       *                the isCorrect to set
55       */
56      public void setIsCorrect(Boolean isCorrect) {
57          this.isCorrect = isCorrect;
58      }
59  
60      /**
61       * @return the answerID
62       */
63      public Integer getAnswerID() {
64          return answerID;
65      }
66  
67      /**
68       * @param answerID
69       *                the answerID to set
70       */
71      public void setAnswerID(Integer answerID) {
72          this.answerID = answerID;
73      }
74  
75      /**
76       * @return the questionID
77       */
78      public Integer getQuestionID() {
79          return questionID;
80      }
81  
82      /**
83       * @param questionID
84       *                the questionID to set
85       */
86      public void setQuestionID(Integer questionID) {
87          this.questionID = questionID;
88      }
89  
90      /* (non-Javadoc)
91       * @see java.lang.Object#toString()
92       */
93      @Override
94      public String toString() {
95          return this.text;
96      }
97  
98  }